PDA

View Full Version : PHP contact form



suzy
January 7th, 2007, 01:41 PM
I have just been using your tutorial on making a contact form using PHP. (http://www.kirupa.com/web/php_contact_form.htm (http://www.kirupa.com/forum/../web/php_contact_form.htm))


I think its great and has been really helpful, although I was wondering - when you submit the info in the form it brings you to a page which displays the information


“Data has been submitted to me@myemail.com!” (me@myemail.com%21)



is there anyway that when you press the submit button that I could redirect the user to a custom page of my own?
hoping you can help!


suzy

bwh2
January 8th, 2007, 03:04 PM
if you're using the code on this page (http://www.kirupa.com/web/php_contact_form2.htm), then change this:


echo "Data has been submitted to $to!";
to

header( 'Location: mycustompage.html' );
of course, you will have to change mycustompage.html to whatever address you want.

suzy
January 8th, 2007, 03:53 PM
Thanks a mil! will give it a wee go here! :)