Forums

PHP

This topic is locked

Simple Form Re-direct after submission

Posted 12 Nov 2003 12:52:28
1
has voted
12 Nov 2003 12:52:28 Martin Howell posted:
<font face='Arial'>I've done a simple php form but I'm not sure how to redirect the user after they have submitted the form.

At the moment the form refreshes but I'd like to send them to a thank you page.

Can someone point me in the right direction please.

Thanks</font id='Arial'>

Replies

Replied 13 Nov 2003 13:15:45
13 Nov 2003 13:15:45 Michael Guntenaar replied:
if(isset($_POST['submit'])) {
//do your thing with the values
header("Location: yourpage.php";
}

Be sure you dont print any values to the screen before you use this , you will see the error when you dont <img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>


Reply to this topic