Topic: trying to send email through a form - help?
this is my form
<form method="post" action="assets/form_response.php">
<table width="90%" height="388" border="0" cellpadding="3" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td colspan="2" >
<p> <b> I would like to receive Information about all flight Programs.</b><br>
<input type="checkbox" name="box" size="20" maxlength="20" />
</p> </td>
</tr>
<tr>
<td width="31%" align="right" >* First Name: </td>
<td width="69%" >
<input type="text" name="Firstname" size="45" maxlength="60"> </td>
</tr>
<tr>
<td width="31%" align="right" > * Last Name:</td>
<td width="69%" >
<input type="text" name="Lastname" size="45" maxlength="60"> </td>
</tr>
<tr>
<td height="2" width="31%" align="right" > * Street Address 1:</td>
<td height="2" width="69%" >
<input type="text" name="FirstAddress" size="45" maxlength="60"> </td>
</tr>
<tr>
<td height="2" width="31%" align="right" > Street Address 2:</td>
<td height="2" width="69%" >
<input type="text" name="SecondAddress" size="45" maxlength="60"> </td>
</tr>
<tr>
<td height="33" width="31%" align="right" > * City:</td>
<td height="33" width="69%" >
<input type="text" name="City" size="25" maxlength="50"> </td>
</tr>
<tr>
<td height="2" width="31%" align="right" > * State:</td>
<td height="2" width="69%" >
<input type="text" name="State" size="4" maxlength="2"> </td>
</tr>
<tr>
<td height="33" width="31%" align="right" > * Zip:</td>
<td height="33" width="69%" >
<input type="text" name="Zip" size="25" maxlength="50"> </td>
</tr>
<tr>
<td height="2" width="31%" align="right" >* Country:</td>
<td height="2" width="69%" >
<input type="text" name="Country" size="25" maxlength="50"> </td>
</tr>
<tr>
<td height="2" width="31%" align="right" > Phone:</td>
<td height="2" width="69%" >
<input type="text" name="Phone" size="12" maxlength="20"> </td>
</tr>
<tr>
<td height="2" width="31%" align="right" > * E-mail:</td>
<td height="2" width="69%" >
<input type="text" name="Email" size="25" maxlength="100"> </td>
</tr>
<tr>
<td height="2" width="31%" align="right" > Previous Flight Time:</td>
<td height="2" width="69%" >
<input type="text" name="Time" size="25" maxlength="100"> </td>
</tr>
<tr align="center">
<td height="2" colspan="2" >
<input type="submit" name="submit" value="submit request" class="submit"> </td>
</tr>
</table>
</form>
Here is my form_response file.
<?php
$box = $_POST['box'];
$Firstname =$_POST['Firstname'];
$Lastname = $_POST['Lastname'];
$Address1 = $_POST['Address1'];
$Address2 $_POST['Address2'];
$City = $_POST['City'];
$Zip = $_POST['Zip'];
$Country = $_POST['Country'];
$Phone = $_POST['Phone'];
$Email = $_POST['Email'];
$Time = $_POST['Time'];
$email_message = "I would like info about all your programs: {$box} all my other info is {$Firstname} , {$Lastname} , {$Address1} , {$Address2} , {$City} , {$Zip} , {$Country} , {$Phone} , {$Email} , {$Time}";
$to = "robert.cfi@gmail.com";
$subject = "none";
$message = "$email_message";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
why does this not work? any help is great help. thanks

