Maybe somebody has an instant answer based on your post. I don't know of one.
This is a very simple problem but unfortunately, afaik, needs to be done in light of the entire framework of the form and form handler and the pages and file names involved. (The code you have given is the core of the form handler, btw.) You may not be able to actually redirect the user, which can be done only prior to any other browser output.
My quick and dirty suggestion is to insert this line immediatly after "mail($to, $subject, $body);"
- Code: Select all
echo '<br /><a href="./whereIwantyoutogo.php">Click here to continue</a>';
Obviously you will change the href to your target page.