Newbie-after form submission return to home page?
Posted: Sun Sep 13, 2009 6:45 pm
Hi,
php is a foreign language to me, dont know how to do 2 things.
When the form is filled out and submitted, then the "thank you" message is displayed on a blank white page.
I want the "thank you" to be displayed on a webpage with the navigation etc.
Or when the message comes up for it to be in a new window, so user can just go to website, currently, the fill form out, submit, message appears and website is gone.
I tried to add a url with target blank inside the code but it did not work.
I would really appreciate your help.
Heres the bit of code I think is needing variables.
// if the redirect option is set: redirect them
if ($redirect) {
header("Location: $redirect");
exit;
} else {
echo "Thank you for your submission, someone will be in contact with you soon.\n";
echo "<br><br>\n";
exit;
}
// <---------- THE END ----------> //
php is a foreign language to me, dont know how to do 2 things.
When the form is filled out and submitted, then the "thank you" message is displayed on a blank white page.
I want the "thank you" to be displayed on a webpage with the navigation etc.
Or when the message comes up for it to be in a new window, so user can just go to website, currently, the fill form out, submit, message appears and website is gone.
I tried to add a url with target blank inside the code but it did not work.
I would really appreciate your help.
Heres the bit of code I think is needing variables.
// if the redirect option is set: redirect them
if ($redirect) {
header("Location: $redirect");
exit;
} else {
echo "Thank you for your submission, someone will be in contact with you soon.\n";
echo "<br><br>\n";
exit;
}
// <---------- THE END ----------> //