.asp question re: contact form script
.asp question re: contact form script
Author
Discussion

drivin_me_nuts

Original Poster:

17,949 posts

242 months

Friday 30th April 2010
quotequote all
I know nothing about .asp and I am planning to use a simple aps script taken from

http://www.tele-pro.co.uk/scripts/contact_form/

It looks relatively straight forward (famous last words here ...), but I have a question wrt the last few lines:



' redirect to success page
Response.Redirect("ok.htm?" & EmailFrom)
%>

dumb question, but is the name of the page here ok.htm or does the question mark act as a generic variable name. If the page was thanks.html, would the code be:

' redirect to success page
Response.Redirect("thanks.html?" & EmailFrom)
%>


Cheers

marshalla

15,902 posts

232 months

Friday 30th April 2010
quotequote all
The question mark is part of the URL and marks the break between the file and the data which will be sent as part of the request (in this case, the contents of EMailFrom).

Have a look at HTTP GET methods and form handling for more info.