below you will find code that echos an html message that on submit sends the same html message to the email address from the form. what I need to know is how to redirect the page to [url]http://www.bloomingcanvas.com/mike/thankyou.html
[CODE]
<?
$to = $_POST[‘guestemail’];
$from = $_POST[‘usersemail’];
$name = $_POST[‘guestname’];
$sendername = $_POST[‘usersname’];
$message = $_POST[‘themessage’];
$subject = “$name Please join us at the next FX”;
$emailmessage = <<<EOF
<html>
<body bgcolor=”white”>
<table align=”center” border=”1″ bordercolor=”gray” width=”400px”>
<tr>
<td width=”400px” align=”center”>
<img src=”http://www.bloomingcanvas.com/mike/title.gif”/><br/>
</td>
</tr>
<tr>
<td>
<font style=”font-family:verdana,arial,helvetica; font-color=GRAY; font-size=14pt”>Dear $name</font><br/><br/>
<font style=”font-family:verdana,arial,helvetica; font-color=GRAY; font-size=12pt”>On January 5th, we would like to invite you to the next FX. FX stands for Family Experience. During the FX program… <br/><br/>$message <br/><br/> January 5th at 5:30 PM Do not be late, the start of the show is always action packed!</font> <br/><br/>
<font style=”font-family:verdana,arial,helvetica; font-color=GRAY; font-size=14pt”> <br/> $sendername </font><br/><br/>
<font style=”font-family:verdana,arial,helvetica; font-color=GRAY; font-size=10pt”> Click here for directions<a href=”http://www.mapquest.com/maps/map.adp?address=7689%20Bethany%20Rd&city=Liberty%20Township&state=OH&zipcode=45044%2d9515&country=US&title=%3cb%20class%3d%22fn%20org%22%3e7689%20Bethany%20Rd%3c%2fb%3e%3cbr%20%2f%3e%20%3cspan%20style%3d%22display%3ainline%3bmargin%2dbottom%3a0px%3b%22%20class%3d%22locality%22%3eLiberty%20Township%3c%2fspan%3e%2c%20%3cspan%20style%3d%22display%3ainline%3bmargin%2dbottom%3a0px%3b%22%20class%3d%22region%22%3eOH%3c%2fspan%3e%20%3cspan%20style%3d%22display%3ainline%3bmargin%2dbottom%3a0px%3b%22%20class%3d%22postal%2dcode%22%3e45044%2d9515%3c%2fspan%3e%2c%20%20%3cspan%20style%3d%22display%3ainline%3bmargin%2dbottom%3a0px%3b%22%20class%3d%22country%2dname%22%3eUS%3c%2fspan%3e%3c%2fspan%3e&cid=lfmaplink2&name=&dtype=s”>Map of 7689 Bethany Rd Liberty Township, OH 45044-9515, US</a>
</td>
</tr
</table>
</body>
</html>
EOF;
$success_sent_msg = <<<EOF
<html>
<body bgcolor=”white”>
<table align=”center” border=”1″ bordercolor=”gray” width=”400px”>
<tr>
<td width=”400px” align=”center”>
<font style=”font-family:verdana,arial,helvetica; font-color=GRAY; font-size=12pt”>Please Review your message and click Send below to send your email</font>
<img src=”http://www.bloomingcanvas.com/mike/title.gif”/><br/>
</td>
</tr>
<tr>
<td width=”400″>
<font style=”font-family:verdana,arial,helvetica; font-color=GRAY; font-size=14pt”>Dear $name</font><br/><br/>
<font style=”font-family:verdana,arial,helvetica; font-color=GRAY; font-size=12pt”>On January 5th, we would like to invite you to the next FX. FX stands for Family Experience. During the FX program… <br/><br/>$message <br/><br/> January 5th at 5:30 PM Do not be late, the start of the show is always action packed!</font> <br/><br/>
<font style=”font-family:verdana,arial,helvetica; font-color=GRAY; font-size=14pt”> <br/> $sendername </font><br/><br/>
<font style=”font-family:verdana,arial,helvetica; font-color=GRAY; font-size=10pt”> Click here for directions<a href=”http://www.mapquest.com/maps/map.adp?address=7689%20Bethany%20Rd&city=Liberty%20Township&state=OH&zipcode=45044%2d9515&country=US&title=%3cb%20class%3d%22fn%20org%22%3e7689%20Bethany%20Rd%3c%2fb%3e%3cbr%20%2f%3e%20%3cspan%20style%3d%22display%3ainline%3bmargin%2dbottom%3a0px%3b%22%20class%3d%22locality%22%3eLiberty%20Township%3c%2fspan%3e%2c%20%3cspan%20style%3d%22display%3ainline%3bmargin%2dbottom%3a0px%3b%22%20class%3d%22region%22%3eOH%3c%2fspan%3e%20%3cspan%20style%3d%22display%3ainline%3bmargin%2dbottom%3a0px%3b%22%20class%3d%22postal%2dcode%22%3e45044%2d9515%3c%2fspan%3e%2c%20%20%3cspan%20style%3d%22display%3ainline%3bmargin%2dbottom%3a0px%3b%22%20class%3d%22country%2dname%22%3eUS%3c%2fspan%3e%3c%2fspan%3e&cid=lfmaplink2&name=&dtype=s”>Map of 7689 Bethany Rd Liberty Township, OH 45044-9515, US</a>
</td>
</tr>
<tr>
<td><a href=”#” onClick=”history.go(-1)”>Click Here</a><font style=”font-family:verdana,arial,helvetica; font-color=GRAY; font-size=10pt”>to make changes</Font><form action=”test5.php” method=”post”><input type=”hidden” name=”guestemail” value=”{$to}” /><input type=”hidden” name=”usersemail” value=”{$from}” /><input type=”hidden” name=”guestname” value=”{$name}” /><input type=”hidden” name=”usersname” value=”{$sendername}” /><input type=”hidden” name=”themessage” value=”{$message}” /><input type=”submit” name=”sendmail” value=”Send Email” /></form>
</td>
</tr>
</table>
</body>
</html>
EOF;
echo $success_sent_msg;
$headers = “From: $fromrn”;
$headers .= “Content-type: text/htmlrn”;
$to = “$to, $from”; // this will send to both emails at the same time.
// now lets send the email.
if(isset($_POST[“sendmail”]))
mail($to, $subject, $emailmessage, $headers);
?>