% ' ##### Request QueryString Variables ##### ' ##### Request Form Variables ##### strSubmitted = Request.Form("strSubmitted") ' ##### Other variable declarations ##### arrFind = Array("= Please Select =","Advertisement","Events","Search Engine","Word of Mouth(give details)") arrWeight = Array("500gm","1kg","1.5kg","2kg") arrDay = Array("[Day]","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31") arrMth = Array("[Month]","1","2","3","4","5","6","7","8","9","10","11","12") arrYear = Array("2004") For i = 2005 to (Year(Date())+10) ReDim Preserve arrYear(i-2004) arrYear(i-2004) = i Next If (strSubmitted = "") Then If (action = "") Then strCharlotteWeight = "1kg" strDiannedWeight = "1kg" strMadisonWeight = "1kg" strMagdaleneWeight = "1kg" End if Else ' ##### Read variables from Form collection ############################ strFirstName = Trim(Request.Form("strFirstName")) strLastName = Trim(Request.Form("strLastName")) strTel = Trim(Request.Form("strTel")) strEmail = Trim(Request.Form("strEmail")) strAddress = Trim(Request.Form("strAddress")) strFind = Trim(Request.Form("strFind")) strReferer = Trim(Request.Form("strReferer")) ' strContact = Trim(Request.Form("strContact")) blnCharlotte = Trim(Request.Form("blnCharlotte")) strCharlotteWeight = Trim(Request.Form("strCharlotteWeight")) blnDianne = Trim(Request.Form("blnDianne")) strDiannedWeight = Trim(Request.Form("strDiannedWeight")) blnMadison = Trim(Request.Form("blnMadison")) strMadisonWeight = Trim(Request.Form("strMadisonWeight")) blnMagdalene = Trim(Request.Form("blnMagdalene")) strMagdaleneWeight = Trim(Request.Form("strMagdaleneWeight")) dtCakeDateDay = Trim(Request.Form("dtCakeDateDay")) dtCakeDateMth = Trim(Request.Form("dtCakeDateMth")) dtCakeDateYear = Trim(Request.Form("dtCakeDateYear")) strApetite = Trim(Request.Form("strApetite")) strCraves = Trim(Request.Form("strCraves")) strAddiction = Trim(Request.Form("strAddiction")) dtOpiumDateDay = Trim(Request.Form("dtOpiumDateDay")) dtOpiumDateMth = Trim(Request.Form("dtOpiumDateMth")) dtOpiumDateYear = Trim(Request.Form("dtOpiumDateYear")) strMessage = Trim(Request.Form("strMessage")) blnMailing = Trim(Request.Form("blnMailing")) blnAgreement = Trim(Request.Form("blnAgreement")) strOrder1 = Trim(Request.Form("strOrder1")) strOrder2 = Trim(Request.Form("strOrder2")) strOrder3 = Trim(Request.Form("strOrder3")) strQty1 = Trim(Request.Form("strQty1")) strQty2 = Trim(Request.Form("strQty2")) strQty3 = Trim(Request.Form("strQty3")) strSp1 = Trim(Request.Form("strSp1")) strSp2 = Trim(Request.Form("strSp2")) strSp3 = Trim(Request.Form("strSp3")) strFeedback = Trim(Request.Form("strFeedback")) strDateNeed = Trim(Request.Form("strDateNeed")) strTimeNeed = Trim(Request.Form("strTimeNeed")) strDelivery = Trim(Request.Form("strDelivery")) strOtherIn = Trim(Request.Form("strOtherIn")) 'If (Not IsNumeric(blnAgreement) OR blnAgreement = "") Then blnAgreement = 0 'If (Not IsNumeric(blnCharlotte) OR blnCharlotte = "") Then blnCharlotte = 0 'If (Not IsNumeric(blnDianne) OR blnDianne = "") Then blnDianne = 0 'If (Not IsNumeric(blnMadison) OR blnMadison = "") Then blnMadison = 0 'If (Not IsNumeric(blnMailing) OR blnMailing = "") Then blnMailing = 0 ' ########################################################################## applErr = False emailErr = false email2Err = false telErr = false 'addressErr = False agreeErr = false ' ##### Check all information ##### If (strFirstName = "" or strLastName = "" or strTel = "")Then applErr = true End If ' If (strAddress = "")Then ' applErr = true ' addressErr = true ' End If If (strEmail = "")Then applErr = true emailErr = true End If If (strEmail <> "" and Not IsEmailValid(strEmail)) Then applErr = True email2Err = True End If If (blnAgreement="")Then applErr = True agreeErr = True End If blnAgreement = SetCheckboxChecked(blnAgreement) blnCharlotte = SetCheckboxChecked(blnCharlotte) blnDianne = SetCheckboxChecked(blnDianne) blnMadison = SetCheckboxChecked(blnMadison) blnMagdalene = SetCheckboxChecked(blnMagdalene) blnMailing = SetCheckboxChecked(blnMailing) ' ##### Determine error correction form or process data ##### If (applErr = false) Then strSubmitted = "process" End If If (action = "") Then strPostScript = strPostScript & "?id=" & intID ElseIf (action = "edit") Then strPostScript = strPostScript & "?a=edit&id=" & intID End If End If %>
|
||||||||||||||||||||
|
|
|||||||||||||||||||
|
Website Maintained by Barkers’ Grub |
Copyright
© Barkers’ Grub |