Forum Moderators: open
<% if request.form("post") = 1 then
title = Request.form("title")
firstname = Request.form("firstname")
surname = Request.form("surname")
house_name = Request.form("house_name")
street = Request.form("street")
state_province = Request.form("state_province")
country = Request.form("country")
postcode_zip = Request.form("postcode_zip")
dayphone = Request.form("dayphone")
evening_phone = Request.form("evening_phone")
what_tour = Request.form("what")
email = Request.form("email")
set mail = Server.CreateObject("CDO.Message")
mail.to = "raymond@directglasgow.co.uk"
mail.from= email
mail.subject = "Enquiry"
mail.textbody = title + vbcrlf + firstname + vbcrlf + surname + vbcrlf + house_name + vbcrlf + street + vbcrlf + state_province + vbcrlf + country + vbcrlf + postcode_zip + vbcrlf + dayphone + vbcrlf + evening_phone + vbcrlf + what + vbcrlf + email
mail.send
set mail = nothing
response.Redirect "www.google.com"
%>
when i try tis i get an ASP error
Microsoft VBScript compilation error '800a03f6'
Expected 'End'
/cgi-bin/enquiry.asp, line 21
line 21 is - response.Redirect "www.google.com"
But i have tried a few things...
well im happy i got this far :)
Any help will very good!
<% if request.form("post") = 1 then
title = Request.form("title")
firstname = Request.form("firstname")
surname = Request.form("surname")
house_name = Request.form("house_name")
street = Request.form("street")
state_province = Request.form("state_province")
country = Request.form("country")
postcode_zip = Request.form("postcode_zip")
dayphone = Request.form("dayphone")
evening_phone = Request.form("evening_phone")
what_tour = Request.form("what")
email = Request.form("email")
set mail = Server.CreateObject("CDO.Message")
mail.to = "raymond@directglasgow.co.uk"
mail.from= email
mail.subject = "Enquiry"
mail.textbody = title + vbcrlf + firstname + vbcrlf + surname + vbcrlf + house_name + vbcrlf + street + vbcrlf + state_province + vbcrlf + country + vbcrlf + postcode_zip + vbcrlf + dayphone + vbcrlf + evening_phone + vbcrlf + what + vbcrlf + email
mail.send
set mail = nothing
response.Redirect "www.google.com"
End If
%>
But what i dont understand is why it takes me to a blank page now...
Source of page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
hmmm... ps. no email got sent :-(
pps. it goes to the page with the ASP code, and shows a blank page... lol!