%
if Request.Querystring("isSubmitted") = "yes" then
Dim fname, lname, email, subject, phone, comments, ErrorMsg
Dim objCDO
' Data Validation
'If Request.Form.Count > 0 Then
fname = Request.Querystring("First_Name")
lname = Request.Querystring("Last_Name")
email = Request.Querystring("Email_Address")
subject = Request.Querystring("Subject")
phone = Request.Querystring("Phone")
comments = Request.Querystring("Comments")
comments = replace(comments,vbcrlf,"
")
'*** data validation
If fname = "" Then
ErrorMsg = ErrorMsg & "Please enter your first name
"
End If
If lname = "" Then
ErrorMsg = ErrorMsg & "Please enter your last name
"
End If
If email = "" Then
ErrorMsg = ErrorMsg & "Please enter your email address
"
End If
If subject = "" Then
ErrorMsg = ErrorMsg & "Please enter a subject
"
End If
If phone = "" Then
ErrorMsg = ErrorMsg & "Please enter a phone number
"
End If
If ErrorMsg = "" Then
'if you need to perform any database validations
'this would be a good place.
'once you are all done redirect to a final page
'Response.Redirect "thankyou.htm"
PCTMsg = "***--- This Message was sent via the PCT Website - Contact Us ---***"
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.From = email
objCDO.To = "ExecutiveDirector@phichitheta.org"
objCDO.Cc = "President@phichitheta.org;Webmaster@phichitheta.org"
objCDO.Subject = subject
objCDO.Body = "" & PCTMsg & "
" & "From: " & fname & " " & lname & "
Phone: " & phone & "
" & comments
objCDO.BodyFormat = 0
objCDO.MailFormat = 0
objCDO.Send
Set objCDO = Nothing
ConfirmMsg = "
![]() |
ExecutiveDirector@phichitheta.org Or Contact Us via the Web below... <% If ErrorMsg <> "" Then %><%=ErrorMsg %>
Click HERE or press the back
button
|
<% End If %> <% End If %>
|||||
|
Get In Touch With Phi Chi Theta |
||||||