%
Function CheckCAPTCHA(valCAPTCHA)
SessionCAPTCHA = Trim(Session("CAPTCHA"))
Session("CAPTCHA") = vbNullString
if Len(SessionCAPTCHA) < 1 then
CheckCAPTCHA = False
exit function
end if
if CStr(SessionCAPTCHA) = CStr(valCAPTCHA) then
CheckCAPTCHA = True
else
CheckCAPTCHA = False
end if
End Function
if trim(request("a")) = "contactsw" then
strErr = ""
if trim(request("Contact")) = "" then
strErr = strErr & " - Contact Name
"
end if
if trim(request("Company")) = "" then
strErr = strErr & " - Company
"
end if
if trim(request("Email")) = "" then
strErr = strErr & " - Email Address
"
end if
if trim(request("Enquiry")) = "" then
strErr = strErr & " - Enquiry
"
end if
if CheckCAPTCHA(Trim(Request.Form("strCAPTCHA"))) = false then
strErr = strErr & " - The numbers and letters done appear to be correct
"
end if
if trim(strErr) = "" then
themailbitthiny = themailbitthiny & "
|
||||||||||||||||||||||||||||||||||||||||||||||||||