I understand that.....the code posted above is the code that works (it only send comments). My original non-working code is below. I only posted the working code because I was hoping would someone could help me add to it all parts of the form: First Name, Last Name, Phone Number, Email and Comments can be sent to me email address.
Here is my code that isn't working. What have I done wrong? Thank you.
<?php # Script 2.2 - sendmail.php
$email = $POST['email'] ;
$firstname = $POST['firstname'] ;
$lastname = $POST['lastname'] ;
$phone = $POST['phone'] ;
$comments = $_POST['comments'] ;
mail( "info@premierentals.com", "Contact Us: Form",
$email, "From: $email" );
$firstname, "From: $email" );
$lastname, "From: $email" );
$phone, "From: $email" );
$comments, "From: $email" );
echo "Thank you, <b>$firstname</b> <b>$lastname</b> for the following comments:<br /><tt>$commments</tt><p>We will reply to you at <i>$email</i>.</p>";
?>
PremieRentals.com