
Please advise why this form is not working ;(
It is not sending my customer the information when using the form in Internet Explorer.
I would really appreciate the help!
HTML....
<form method="post" action="process.php">
<div align="center">
<table width="455" bgcolor="#f1dfb6" border="0">
<tr>
<td valign="top">Desired Arrival Date <font size="1"><br />
(example November 09, 2007):</font></td>
<td valign="top"><input type="text" name="t1"></td>
</tr>
<tr>
<td valign="top">Length of Stay <font size="1"><br />
(Number of Nights/Weeks):</font></td>
<td valign="top"><input type="text" name="t2"></td>
</tr>
<tr>
<td valign="top">Number in Party<br />
<font size="1"> (# of Adults & # of Children):</font> </td>
<td valign="top"><input type="text" name="t3"></td>
</tr>
<tr>
<td valign="top">Full Name: </td>
<td valign="top"><input type="text" name="t4"></td>
</tr>
<tr>
<td valign="top">Email Address:</td>
<td valign="top"><input type="email" name="t5"></td>
</tr>
<tr>
<td valign="top">Telephone w/ Area Code: </td>
<td valign="top"><input type="text" name="t6"></td>
</tr>
<tr>
<td valign="top">Best time to call: </td>
<td valign="top"><input type="text" name="t7"></td>
</tr>
<tr>
<td valign="top">Comments:</td>
<td valign="top"><textarea name="t8" cols="20" rows="5"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="Submit">
<input name="Reset" type="reset" value="Reset" /></td>
</tr>
</table>
</div>
</form>
<div align="center">
<center>
</center>
</div></td>
</tr>
<tr>
<td height="18"></td>
<td valign="top"><div align="center">
<p> </p>
</div></td>
</tr>
<tr>
<td height="37"></td>
<td valign="top"><div align="center"><a href="index.html">Home</a> | <a href="rooms.html">Facilities
and Rates</a> | <a href="contact.html">Contact</a></div>
PHP.....(process.php)
<?php
$mymail = 'mcannon@hwsinet.com';
$cc = 'Customer Date Request';
$BoDy = ' ';
$FrOm = 'FROM:' .$_POST['t1'];
$FrOm .= 'Reply-To:' .$_POST['t1'];
$FrOm .= 'X-MAILER: PHP'.phpversion();
$BoDy .= 'Desired Arrival Date (example November 09, 2007):: ';
$BoDy .= $_POST['t1'];
$BoDy .= "\n";
$BoDy .= 'Length of Stay (Number of Nights/Weeks):: ';
$BoDy .= $_POST['t2'];
$BoDy .= "\n";
$BoDy .= 'Number in Party (# of Adults & # of Children): : ';
$BoDy .= $_POST['t3'];
$BoDy .= "\n";
$BoDy .= 'Full Name: : ';
$BoDy .= $_POST['t4'];
$BoDy .= "\n";
$BoDy .= 'Email Address:: ';
$BoDy .= $_POST['t5'];
$BoDy .= "\n";
$BoDy .= 'Telephone w/ Area Code: : ';
$BoDy .= $_POST['t6'];
$BoDy .= "\n";
$BoDy .= 'Best time to call: : ';
$BoDy .= $_POST['t7'];
$BoDy .= "\n";
$BoDy .= 'Comments:: ';
$BoDy .= $_POST['t8'];
$BoDy .= "\n";
$send = mail("$mymail", "$cc", "$BoDy", "$FrOm");
///Redirect user to your homepage....
if($send)
{
echo '<html><head>';
echo '<meta http-equiv="refresh" content="0;URL=http://www.mypoconocabin.com">';
echo '</head><body>Sending Request to Mypoconocabin.com.....';
echo '</body></html>';
}
?>