I need to redirect my users after the mailer is sent to thank my customers.
Where does the header("Location:http://host.com/me/thanks.php"); go?
Thanks
<?php
//upload in binary
//$today=date("M-d-Y");
if($subject==""){
$subject="Here's Your Order!";
}
if ($pic !="Pictures"){
// Path to your picture dir.
$base="http://host.com/me";
$message_n="<head>
</head><table align=center border=1 bordercolor=red><tr>
<td><center><img src=$base/$pic.gif></center><p></td></tr>
<td><font face=verdana color=red size=3>$comments</p>
</font></td>
</tr></table></body>";
}
else {
$message_n="<head>
</head>
<body bgcolor=black>
<font size=+1 color=red>$today<br></font>
<center>
<font size=+2 color=white>Message:</font><font color=red size=3></u>$comments
</font>
</body>";
}
$headers .= "MIME-Version: 1.0 \n" ;
$headers .= "From:Graphics & Sound <zoobie007@yahoo.com> \n";
$headers .= "X-Priority:3 \n";
$headers .= "Return-Path:Me <me@home.com> \n";
$headers .= "Content-Type:text/html;charset=iso-8859-1 \n";
$mail_fn=mail($receiver,$subject,$message_n,$headers);
if($mail_fn==0)
{
echo"An error has occured.";
}
else
echo"Your Email Has Been Sent!";
?>