%
response.buffer = True
response.addheader "Pragma", "No-Cache"
response.expires = 0
dim strErr
'declare session variables
'validation section
Session("Client") = Request.Form("Client")
Session("Referred") = Request.Form("Referred")
Session("ClientAddress") = Request.Form("ClientAddress")
Session("city") = Request.Form("city")
Session("state") = Request.Form("state")
Session("zip") = Request.Form("zip")
Session("HomePhone") = Request.Form("HomePhone")
Session("WorkPhone") = Request.Form("WorkPhone")
Session("OtherPhone") = Request.Form("OtherPhone")
Session("Email") = Request.Form("Email")
Session("EventType") = Request.Form("EventType")
Session("EventDate") = Request.Form("EventDate")
Session("EventStart") = Request.Form("EventStart")
Session("EventStop") = Request.Form("EventStop")
Session("EventLocation") = Request.Form("EventLocation")
Session("EventAddress") = Request.Form("EventAddress")
Session("OnSiteContact") = Request.Form("OnSiteContact")
Session("OnSiteContactPhone") = Request.Form("OnSiteContactPhone")
Session("ReceptionAddress") = Request.Form("ReceptionAddress")
'non-validation section
Session("GuestNum") = Request.Form("GuestNum")
Session("AgeRange") = Request.Form("AgeRange")
If Request.Form("AdditionalTime") = "yes" Then
Session("AdditionalTimeYes") = "Checked"
End If
If Request.Form("AdditionalTime") = "no" Then
Session("AdditionalTimeNo") = "Checked"
End If
If Request.Form("AdditionalTime") = "not sure" Then
Session("AdditionalTimeNotSure") = "Checked"
End If
If Request.Form("DiningMusic") = "yes" Then
Session("DiningMusicYes") = "Checked"
End If
If Request.Form("DiningMusic") = "no" Then
Session("DiningMusicNo") = "Checked"
End If
If Request.Form("RandB") = "yes" Then
Session("RandB") = "Checked"
End If
If Request.Form("Rock") = "yes" Then
Session("Rock") = "Checked"
End If
If Request.Form("Classical") = "yes" Then
Session("Classical") = "Checked"
End If
If Request.Form("ShowTunes") = "yes" Then
Session("ShowTunes") = "Checked"
End If
If Request.Form("JazzContemp") = "yes" Then
Session("JazzContemp") = "Checked"
End If
If Request.Form("JazzClassic") = "yes" Then
Session("JazzClassic") = "Checked"
End If
If Request.Form("OtherDiningMusic") = "yes" Then
Session("OtherDiningMusic") = "Checked"
End If
Session("OtherDiningMusicText") = Request.Form("OtherDiningMusicText")
If Request.Form("DanceMusic") = "yes" Then
Session("DanceMusicYes") = "Checked"
End If
If Request.Form("DanceMusic") = "no" Then
Session("DanceMusicNo") = "Checked"
End If
If Request.Form("50RandB") = "yes" Then
Session("50RandB") = "Checked"
End If
If Request.Form("50RandR") = "yes" Then
Session("50RandR") = "Checked"
End If
If Request.Form("60PartyRock") = "yes" Then
Session("60PartyRock") = "Checked"
End If
If Request.Form("60Motown") = "yes" Then
Session("60Motown") = "Checked"
End If
If Request.Form("70ClassicRock") = "yes" Then
Session("70ClassicRock") = "Checked"
End If
If Request.Form("70RandB") = "yes" Then
Session("70RandB") = "Checked"
End If
If Request.Form("80RandB") = "yes" Then
Session("80RandB") = "Checked"
End If
If Request.Form("80Rock") = "yes" Then
Session("80Rock") = "Checked"
End If
If Request.Form("90RandB") = "yes" Then
Session("90RandB") = "Checked"
End If
If Request.Form("90Rock") = "yes" Then
Session("90Rock") = "Checked"
End If
If Request.Form("DiscoFunk") = "yes" Then
Session("DiscoFunk") = "Checked"
End If
If Request.Form("Pop") = "yes" Then
Session("Pop") = "Checked"
End If
If Request.Form("BigBand") = "yes" Then
Session("BigBand") = "Checked"
End If
If Request.Form("Country") = "yes" Then
Session("Country") = "Checked"
End If
If Request.Form("Latin") = "yes" Then
Session("Latin") = "Checked"
End If
If Request.Form("Reggae") = "yes" Then
Session("Reggae") = "Checked"
End If
If Request.Form("OtherDanceMusic") = "yes" Then
Session("OtherDanceMusic") = "Checked"
End If
Session("OtherDanceMusicText") = Request.Form("OtherDanceMusicText")
Session("MusicPreferrence") = Request.Form("MusicPreferrence")
Session("DontPlay") = Request.Form("DontPlay")
If Request.Form("DJAttire") = "formal" Then
Session("DJAttireFormal") = "Checked"
End If
If Request.Form("DJAttire") = "semi-formal" Then
Session("DJAttireSemiFormal") = "Checked"
End If
If Request.Form("DJAttire") = "business casual" Then
Session("DJAttireBC") = "Checked"
End If
If Request.Form("DJAttire") = "comfortable" Then
Session("DJAttireComfortable") = "Checked"
End If
If Request.Form("DJAttire") = "other" Then
Session("DJAttireOther") = "Checked"
End If
Session("DJAttireOtherText") = Request.Form("DJAttireOther")
If Request.Form("DJPersonality") = "quite" Then
Session("DJPersonalityQuite") = "Checked"
End If
If Request.Form("DJPersonality") = "quiet-medium" Then
Session("DJPersonalityQM") = "Checked"
End If
If Request.Form("DJPersonality") = "medium" Then
Session("DJPersonalityMedium") = "Checked"
End If
If Request.Form("DJPersonality") = "medium-lively" Then
Session("DJPersonalityML") = "Checked"
End If
If Request.Form("DJPersonality") = "lively" Then
Session("DJPersonalityLively") = "Checked"
End If
Session("EventTime1") = Request.Form("EventTime1")
Session("Event1") = Request.Form("Event1")
Session("EventTime2") = Request.Form("EventTime2")
Session("Event2") = Request.Form("Event2")
Session("EventTime3") = Request.Form("EventTime3")
Session("Event3") = Request.Form("Event3")
Session("EventTime4") = Request.Form("EventTime4")
Session("Event4") = Request.Form("Event4")
Session("EventTime5") = Request.Form("EventTime5")
Session("Event5") = Request.Form("Event5")
Session("EventTime6") = Request.Form("EventTime6")
Session("Event6") = Request.Form("Event6")
Session("EventTime7") = Request.Form("EventTime7")
Session("Event7") = Request.Form("Event7")
Session("EventTime8") = Request.Form("EventTime8")
Session("Event8") = Request.Form("Event8")
Session("Instructions") = Request.Form("Instructions")
strErr = ""
'validate form
If Request.Form("Client") = "" Then
Session("ErrClient") = "You must enter the Client(s) name:"
strErr = 1
End If
if request.form("Referred") = "" then
Session("ErrReferred") = "You must enter the person's name who referred you:"
'strErr = 1
end if
If Request.Form("ClientAddress") = "" Then
Session("ErrClientAddress") = "You must enter the Client's Address:"
'strErr = 1
End If
If Request.Form("city") = "" Then
Session("errcity") = "You must enter the Client's City:"
'strErr = 1
End If
If Request.Form("state") = "" Then
Session("errstate") = "You must enter the Client's State:"
'strErr = 1
End If
If Request.Form("zip") = "" Then
Session("errzip") = "You must enter the Client's Postal (Zip) Code:"
'strErr = 1
End If
If Request.Form("HomePhone") = "" AND Request.Form("WorkPhone") = "" AND Request.Form("OtherPhone") = "" Then
Session("ErrPhone") = "You must enter at least one Phone Number:"
'strErr = 1
End If
If Request.Form("Email") = "" Then
Session("ErrEmail") = "You must enter your E-mail Address:"
strErr = 1
End If
If Request.Form("EventType") = "" Then
Session("ErrEventType") = "You must enter the Type of Event/Occasion:"
'strErr = 1
End If
If Request.Form("EventDate") = "" Then
Session("ErrEventDate") = "You must enter the Date of your event:"
'strErr = 1
End If
If Request.Form("EventStart") = "" Then
Session("ErrEventStart") = "You must enter the Start Time of your event:"
'strErr = 1
End If
If Request.Form("EventStop") = "" Then
Session("ErrEventStop") = "You must enter the Ending Time of your event:"
'strErr = 1
End If
If Request.Form("EventLocation") = "" Then
Session("ErrEventLocation") = "You must enter the Location of your event:"
'strErr = 1
End If
If Request.Form("EventAddress") = "" Then
Session("ErrEventAddress") = "You must enter the Address of your event:"
'strErr = 1
End If
If Request.Form("OnSiteContact") = "" Then
Session("ErrOnSiteContact") = "You must enter an On-site Contact for your event:"
'strErr = 1
End If
If Request.Form("OnSiteContactPhone") = "" Then
Session("ErrOnSiteContactPhone") = "You must enter the On-Site Contact's Phone Number:"
'strErr = 1
End If
If Not strErr = "" Then
Response.Redirect("../partyform.asp")
Else
'clear validation
Session("ErrClient") = ""
Session("ErrReferred") = ""
Session("ErrClientAddress") = ""
Session("errcity") = ""
Session("errstate") = ""
Session("errzip") = ""
Session("ErrPhone") = ""
Session("ErrEmail") = ""
Session("ErrEventType") = ""
Session("ErrEventDate") = ""
Session("ErrEventStart") = ""
Session("ErrEventStop") = ""
Session("ErrEventLocation") = ""
Session("ErrEventAddress") = ""
Session("ErrOnSiteContact") = ""
Session("ErrOnSiteContactPhone") = ""
'clear session variables
Session("Client") = ""
Session("Referred") = ""
Session("ClientAddress") = ""
Session("city") = ""
Session("state") = ""
Session("zip") = ""
Session("HomePhone") = ""
Session("WorkPhone") = ""
Session("OtherPhone") = ""
Session("Email") = ""
Session("EventType") = ""
Session("EventDate") = ""
Session("EventStart") = ""
Session("EventStop") = ""
Session("EventLocation") = ""
Session("EventAddress") = ""
Session("OnSiteContact") = ""
Session("OnSiteContactPhone") = ""
Session("ReceptionAddress") = ""
Session("GuestNum") = ""
Session("AgeRange") = ""
Session("AdditionalTimeYes") = ""
Session("AdditionalTimeNo") = ""
Session("AdditionalTimeNotSure") = ""
Session("DiningMusicYes") = ""
Session("DiningMusicNo") = ""
Session("RandB") = ""
Session("Rock") = ""
Session("Classical") = ""
Session("ShowTunes") = ""
Session("JazzContemp") = ""
Session("JazzClassic") = ""
Session("OtherDiningMusic") = ""
Session("OtherDiningMusicText") = ""
Session("DanceMusicYes") = ""
Session("DanceMusicNo") = ""
Session("50RandB") = ""
Session("50RandR") = ""
Session("60PartyRock") = ""
Session("60Motown") = ""
Session("70ClassicRock") = ""
Session("70RandB") = ""
Session("80RandB") = ""
Session("80Rock") = ""
Session("90RandB") = ""
Session("90Rock") = ""
Session("DiscoFunk") = ""
Session("Pop") = ""
Session("BigBand") = ""
Session("Country") = ""
Session("Latin") = ""
Session("Reggae") = ""
Session("OtherDanceMusic") = ""
Session("OtherDanceMusicText") = ""
Session("MusicPreferrence") = ""
Session("DontPlay") = ""
Session("DJAttireFormal") = ""
Session("DJAttireSemiFormal") = ""
Session("DJAttireBC") = ""
Session("DJAttireComfortable") = ""
Session("DJAttireOther") = ""
Session("DJAttireOtherText") = ""
Session("DJPersonalityQuite") = ""
Session("DJPersonalityQM") = ""
Session("DJPersonalityMedium") = ""
Session("DJPersonalityML") = ""
Session("DJPersonalityLively") = ""
Session("EventTime1") = ""
Session("Event1") = ""
Session("EventTime2") = ""
Session("Event2") = ""
Session("EventTime3") = ""
Session("Event3") = ""
Session("EventTime4") = ""
Session("Event4") = ""
Session("EventTime5") = ""
Session("Event5") = ""
Session("EventTime6") = ""
Session("Event6") = ""
Session("EventTime7") = ""
Session("Event7") = ""
Session("EventTime8") = ""
Session("Event8") = ""
Session("Instructions") = ""
End If
'end validation
dim SenderEmail, SenderName
dim oMail, Bdy
SenderEmail = request.form("Email")
SenderName = request.form("Client")
Bdy = "
" & _
"" & _
"| Client(s) : | " & request.form("Client") & " | " & chr(13) & chr(10) & "
" & _
"| Referred by : | " & request.form("Referred") & " | " & chr(13) & chr(10) & "
" & _
"| Address : | " & request.form("ClientAddress") & " | " & chr(13) & chr(10) & "
" & _
"| | " & request.form("city") & ", " & request.form("state") & " " & request.form("zip") & " | " & chr(13) & chr(10) & "
" & _
"| Home Phone : | " & request.form("HomePhone") & " | " & chr(13) & chr(10) & "
" & _
"| Work Phone : | " & request.form("WorkPhone") & " | " & chr(13) & chr(10) & "
" & _
"| Other Phone : | " & request.form("OtherPhone") & " | " & chr(13) & chr(10) & "
" & _
"| Email Address : | " & request.form("Email") & " | " & chr(13) & chr(10) & "
" & _
"| Event Type/Occasion : | " & request.form("EventType") & " | " & chr(13) & chr(10) & "
" & _
"| Date : | " & request.form("EventDate") & " | " & chr(13) & chr(10) & "
" & _
"| Time : | " & request.form("EventStart") & " to " & request.form("EventStop") & " | " & chr(13) & chr(10) & "
" & _
"| Location : | " & request.form("EventLocation") & " | " & chr(13) & chr(10) & "
" & _
"| Address : | " & request.form("EventAddress") & " | " & chr(13) & chr(10) & "
" & _
"| On-site Contact : | " & request.form("OnSiteContact") & " | " & chr(13) & chr(10) & "
" & _
"| Phone Number : | " & request.form("OnSiteContactPhone") & " | " & chr(13) & chr(10) & "
" & _
"| # of Guests : | " & request.form("GuestNum") & " | " & chr(13) & chr(10) & "
" & _
"| Guest Age Range : | " & request.form("AgeRange") & " | " & chr(13) & chr(10) & "
" & _
"| Rent extra time : | " & request.form("AdditionalTime") & " | " & chr(13) & chr(10) & "
" & _
"| Dining/Cocktail Music : | " & request.form("DiningMusic") & " | " & chr(13) & chr(10) & "
" & _
"| Adult Contemporary R&B : | " & request.form("RandB") & " | " & chr(13) & chr(10) & "
" & _
"| Adult Contemporary Rock : | " & request.form("Rock") & " | " & chr(13) & chr(10) & "
" & _
"| Classical : | " & request.form("Classical") & " | " & chr(13) & chr(10) & "
" & _
"| Show Tunes : | " & request.form("ShowTunes") & " | " & chr(13) & chr(10) & "
" & _
"| Contemporary Jazz : | " & request.form("JazzContemp") & " | " & chr(13) & chr(10) & "
" & _
"| Classic Jazz : | " & request.form("JazzClassic") & " | " & chr(13) & chr(10) & "
" & _
"| Other : | " & request.form("OtherDiningMusic") & " | " & chr(13) & chr(10) & "
" & _
"| If Other : | " & request.form("OtherDiningMusicText") & " | " & chr(13) & chr(10) & "
" & _
"| Dancing Music : | " & request.form("DancingMusic") & " | " & chr(13) & chr(10) & "
" & _
"| 50’s R&B : | " & request.form("50RandB") & " | " & chr(13) & chr(10) & "
" & _
"| 50’s Rock & Roll : | " & request.form("50RandR") & " | " & chr(13) & chr(10) & "
" & _
"| 60’s Party Rock : | " & request.form("60PartyRock") & " | " & chr(13) & chr(10) & "
" & _
"| 60’s R&B (Motown) : | " & request.form("60Motown") & " | " & chr(13) & chr(10) & "
" & _
"| 70’s Classic Rock : | " & request.form("70ClassicRock") & " | " & chr(13) & chr(10) & "
" & _
"| 70’s R&B : | " & request.form("70RandB") & " | " & chr(13) & chr(10) & "
" & _
"| 80’s R&B(Dance) : | " & request.form("80RandB") & " | " & chr(13) & chr(10) & "
" & _
"| 80’s Rock : | " & request.form("80Rock") & " | " & chr(13) & chr(10) & "
" & _
"| 90’s R&B(Dance) : | " & request.form("90RandB") & " | " & chr(13) & chr(10) & "
" & _
"| 90’s Rock : | " & request.form("90Rock") & " | " & chr(13) & chr(10) & "
" & _
"| Disco/Funk : | " & request.form("DiscoFunk") & " | " & chr(13) & chr(10) & "
" & _
"| Top 40/Pop : | " & request.form("Pop") & " | " & chr(13) & chr(10) & "
" & _
"| Big Band/Hit Parade : | " & request.form("BigBand") & " | " & chr(13) & chr(10) & "
" & _
"| Country : | " & request.form("Country") & " | " & chr(13) & chr(10) & "
" & _
"| Latin : | " & request.form("Latin") & " | " & chr(13) & chr(10) & "
" & _
"| Reggae : | " & request.form("Reggae") & " | " & chr(13) & chr(10) & "
" & _
"| Other : | " & request.form("OtherDanceMusic") & " | " & chr(13) & chr(10) & "
" & _
"| If Other : | " & request.form("OtherDanceMusicText") & " | " & chr(13) & chr(10) & "
" & _
"| Music Preference : | " & request.form("MusicPreferrence") & " | " & chr(13) & chr(10) & "
" & _
"| Don't Play : | " & request.form("DontPlay") & " | " & chr(13) & chr(10) & "
" & _
"| DJ Attire : | " & request.form("DJAttire") & " | " & chr(13) & chr(10) & "
" & _
"| Attire(if other) : | " & request.form("DJAttireOther") & " | " & chr(13) & chr(10) & "
" & _
"| DJ Personality : | " & request.form("DJPersonality") & " | " & chr(13) & chr(10) & "
" & _
"| Scheduled Events & Time : | | " & chr(13) & chr(10) & "
" & _
"| Event1 : | " & request.form("EventTime1") & " and " & request.form("Event1") & " | " & chr(13) & chr(10) & "
" & _
"| Event2 : | " & request.form("EventTime2") & " and " & request.form("Event2") & " | " & chr(13) & chr(10) & "
" & _
"| Event3 : | " & request.form("EventTime3") & " and " & request.form("Event3") & " | " & chr(13) & chr(10) & "
" & _
"| Event4 : | " & request.form("EventTime4") & " and " & request.form("Event4") & " | " & chr(13) & chr(10) & "
" & _
"| Event5 : | " & request.form("EventTime5") & " and " & request.form("Event5") & " | " & chr(13) & chr(10) & "
" & _
"| Event6 : | " & request.form("EventTime6") & " and " & request.form("Event6") & " | " & chr(13) & chr(10) & "
" & _
"| Event7 : | " & request.form("EventTime7") & " and " & request.form("Event7") & " | " & chr(13) & chr(10) & "
" & _
"| Event8 : | " & request.form("EventTime8") & " and " & request.form("Event8") & " | " & chr(13) & chr(10) & "
" & _
"| Instructions : | " & request.form("Instructions") & " |
" & chr(13) & chr(10) & "
" & _
"" & chr(13) & chr(10) & chr(13) & chr(10) &"" & _
"