this is my form
I would like to receive Information about all flight Programs.
* First Name:
* Last Name:
* Street Address 1:
Street Address 2:
* City:
* State:
* Zip:
* Country:
Phone:
* E-mail:
Previous Flight Time:
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