This form loads nicely and takes all the info. The ‘thank you’ message appears after I hit send. The form is never actually emailed, though. Any help is appreciated.
here is the mail form, the form that gets the info to mail:
[php]
mail formYour First Name: | Last Name |
Email Address: | Mobile Phone: |
Year 2013 2012 2011 2010 2009 2008 2007 2006 2005 2004 2003 2002 2001 Other |
Manufacturer |
Model |
Trim Level |
Miles |
Is it 4x4 or AWD? |
Please check if this vehicle has: | |
Leather seats? | Power moonroof? |
DVD player? | Full crew cab? |
Extended cab? | |
Tell us a little about the vehicle:
|
|
|
here is the sendmail form:
[php]
Send the email <?php//start building the mail string
$msg = “First Name “.$_POST[“firstname”].”\n”;
$msg = “Last Name “.$_POST[“lastname”].”\n”;
$msg = “Email Address “.$_POST[“email”].”\n”;
$msg = “Phone Number “.$_POST[“phone”].”\n”;
$msg = “year “.$_POST[“year”].”\n”;
$msg = “manufacturer “.$_POST[“manufacturer”].”\n”;
$msg = “model “.$_POST[“model”].”\n”;
$msg = “trim “.$_POST[“trim”].”\n”;
$msg = “miles “.$_POST[“miles”].”\n”;
$msg = “4x4 “.$_POST[“4x4”].”\n”;
$msg = “leather “.$_POST[“leather”].”\n”;
$msg = “moonroof “.$_POST[“moonroof”].”\n”;
$msg = “dvd “.$_POST[“dvd”].”\n”;
$msg = “crewcab “.$_POST[“crewcab”].”\n”;
$msg = “description “.$_POST[“description”].”\n”;
$formcontent=" From: $firstname \n Last Name: $lastname \n Phone: $phone \n year: $year \n Manufacturer: $manufacturer \n Email: $email \n miles: $miles \n model: $model \n Message: $message 4x4: $4x4 \n leather: $leather \n moonroof: $moonroof \n dvd: $dvd \n crewcab: $crewcab \n Description: $description \n";
$recipient = "[email protected]";
$subject = “Subject goes here”;
$mailheader = “From: $email \r\n”;
mail($recipient, $subject, $formcontent, $mailheader) or die(“Error!”);
echo “Thank you for your inquiry.”;
?>