Hello,
I have a form that a user fills out, and the information is put into a mySQL database using PHP. What I'd like to happen is, once the form has been submitted, the user will be redirected to another page. At the moment, this is the code I'm using :
<?php
if ($submit) {
// process form
$db = mysql_connect("localhost", "XXXXX");
mysql_select_db("XXXXXX",$db);
$sql = "INSERT INTO Testinput (Blah, Blah, Blah) VALUES (´$blah´,´$blah´,´$blah´,´$blah´,´$blah´,´$blah´,´$blah´,´$blah´)";
$result = mysql_query($sql);
echo "Thank you! Information entered.\n";
} else{
// display form
?>
In the echo statement is where I would expect the redirection to occur, but I don't know what sort of code to use.
Any help would be appreciated!
Thanks,
Mark