%@ LANGUAGE="VBSCRIPT" %>
<%
if CStr(Request("isSubmitted")) = "yes" then
Dim cn, count, chapter, email, address, phone, name, region, idate, comments, ErrorMsg
Dim iname(), iaddress(), iphone(), icity(), istate(), issn(), imajor(), igraddate(), izipcode(), iemail()
count = Request("count")
cn = Request("cn")
for i = 1 to count
ReDim Preserve iname(i), iaddress(i), iphone(i), icity(i), istate(i), issn(i), imajor(i), iemail(i), igraddate(i), izipcode(i)
iname(i) = CStr(Request("I_Fullname" & i))
iaddress(i) = CStr(Request("I_Address" & i))
icity(i) = CStr(Request("I_City" & i))
istate(i) = CStr(Request("I_State" & i))
izipcode(i) = CStr(Request("I_ZipCode" & i))
igraddate(i) = CStr(Request("I_GradDate" & i))
issn(i) = CStr(Request("I_SSN" & i))
iphone(i) = CStr(Request("I_Phone" & i))
imajor(i) = CStr(Request("I_Major" & i))
iemail(i) = CStr(Request("iemail" & i))
next
Dim objCDO
' Data Validation
'If Request.Form.Count > 0 Then
chapter = CStr(Request("chapter"))
region = CStr(Request("region"))
idate = CStr(Request("idate"))
email = CStr(Request("email"))
address = CStr(Request("address"))
address = replace(address,vbcrlf,"
")
comments = CStr(Request("Comments"))
comments = replace(comments,vbcrlf,"
")
name = CStr(Request("name"))
phone = CStr(Request("phone"))
cn = CStr(Request("cn"))
'*** data validation
ErrorMsg= ""
For i = 1 to count
If iname(i) = "" Then
ErrorMsg = ErrorMsg & "Please enter your pledge number " & i & "'s name
"
End If
If iaddress(i) = "" Then
ErrorMsg = ErrorMsg & "Please enter your pledge number: " & i & "'s street address
"
End If
If icity(i) = "" Then
ErrorMsg = ErrorMsg & "Please enter your pledge number: " & i & "'s city
"
End If
If istate(i) = "" Then
ErrorMsg = ErrorMsg & "Please enter your pledge number: " & i & "'s state
"
End If
If izipcode(i) = "" Then
ErrorMsg = ErrorMsg & "Please enter your pledge number: " & i & "'s zipcode
"
End If
If igraddate(i) = "" Then
ErrorMsg = ErrorMsg & "Please enter your pledge number: " & i & "'s graduation date
"
End If
If issn(i) = "" Then
ErrorMsg = ErrorMsg & "Please enter your pledge number: " & i & "'s social security number
"
End If
If iphone(i) = "" Then
ErrorMsg = ErrorMsg & "Please enter your pledge number: " & i & "'s phone
"
End If
If imajor(i) = "" Then
ErrorMsg = ErrorMsg & "Please enter your pledge number: " & i & "'s major
"
End If
If iemail(i) = "" Then
ErrorMsg = ErrorMsg & "Please enter your email address: " & i & "'s email
"
End If
Next
If chapter = "" Then
ErrorMsg = ErrorMsg & "Please enter your chapter name
"
End If
If region = "" Then
ErrorMsg = ErrorMsg & "Please enter your chapters region
"
End If
If idate = "" Then
ErrorMsg = ErrorMsg & "Please enter the exact Initiation Date
"
End If
If email = "" Then
ErrorMsg = ErrorMsg & "Please enter your email address
"
End If
If address = "" Then
ErrorMsg = ErrorMsg & "Please enter your mailing address
"
End If
If name = "" Then
ErrorMsg = ErrorMsg & "Please enter your name
"
End If
If phone = "" Then
ErrorMsg = ErrorMsg & "Please enter your phone number
"
End If
if email <> "" then
blnValidEmail = RegExpTest(email)
if blnValidEmail then
else
ErrorMsg = "Not a valid email address - eg. someone@somewhere.com"
end if
end if
Function RegExpTest(sEmail)
RegExpTest = false
Dim regEx, retVal
Set regEx = New RegExp
' Create regular expression:
regEx.Pattern ="^[\w-\.]{1,}\@([\da-zA-Z-]{1,}\.){1,}[\da-zA-Z-]{2,3}$"
' Set pattern:
regEx.IgnoreCase = true
' Set case sensitivity.
retVal = regEx.Test(sEmail)
' Execute the search test.
If not retVal Then
exit function
End If
RegExpTest = true
End Function
end if
sub CopyFieldsToSession
session("Email") = email
session("Chapter") = chapter
session("Region") = region
session("Idate") = idate
session("Subject") = subject
session("Address") = address
session("Comments") = comments
session("Name") = name
session("Phone") = phone
session("Date") = date
session("cn") = cn
for i = 1 to count
session("iname" & i) = iname(i)
session("iaddress" & i) = iaddress(i)
session("icity" & i) = icity(i)
session("istate" & i) = istate(i)
session("izipcode" & i) = izipcode(i)
session("iphone" & i) = iphone(i)
session("imajor" & i) = imajor(i)
session("issn" & i) = issn(i)
session("igraddate" & i) = igraddate(i)
session("iemail" & i) = iemail(i)
next
session("count") = count
end sub
%>
|
|
||||||||||||||||||||||||||||||
|
Online Pledge List Form Form & Pledge Fees of $10 Each Due: 7 Days AFTER to the Pledge Ceremony ($50.00 LATE FEE IF PAID LATE) |
||||||||||||||||||||||||||||||
Verify that the information below is correct. Once you have verified if the information is correct or incorrect scroll down to the bottom of the page and select the appropriate submittal button |
||||||||||||||||||||||||||||||
|
Chapter
Contact Information
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
|
<%=session("Comments")%>
|
||||||||||||||||||||||||||||||
|
Check or Money Order Number: <%=session("cn")%> If the information above is correct press the Submit Information Now button to continue or press the Correct This Information button to correct any information. |
||||||||||||||||||||||||||||||