Forum Moderators: mack

Message Too Old, No Replies

.asp contact form

How do I have a thank you without .php

         

ecreech

3:08 pm on Apr 27, 2004 (gmt 0)

10+ Year Member



I have created a contact form in .asp, but I want to have it redirect to a thank you page after the form is sent. Is there anyway to do this without using .php?

john_k

3:15 pm on Apr 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Add this to the end of the .asp page that handles the form submit:

Response.Redirect "thankyou.html"

ecreech

3:24 pm on Apr 27, 2004 (gmt 0)

10+ Year Member



Where on the page do I add that?

john_k

8:56 pm on Apr 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



At the end of the code that handles the POST from your contact form. i.e. it is the last bit of logic that occurs after your code has processed the contact form.

vkaryl

12:42 am on Apr 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Might be a good idea to post the code for your form (WITHOUT urls); that way someone who's clever with this sort of thing can really point you in the right direction....