note 95642 rejected from function.mail by danbrown
| From: | danbrown@php.net | Date: | Wed, 13 Jan 2010 20:21:40 +0000 |
| Subject: | note 95642 rejected from function.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164941@lists.php.net to get a copy of this message | ||
Note Submitter: jfester at earthlink dot net
----
Anyone know how to make the form redirect to another page if the mail is sent successfully?
if($mail_sent)
{
echo '<script
type="text/javascript">location.href="index.php?page=thanks";
</script>';
exit;
}
Instead of posting the info in "thanks", I want the form to redirect to a URL
"www.example.com/landingpage.html"
Any clues? I have tried a few commands like just echo 'www.example.com/landingpage.html'
also: $Successpage = 'www.example.com/landingpage.html'
than: echo $Successpage
But none are working.
Thank you for any ideas.