I am a novice when it comes to writing PHP script. I am trying to create a basic email form and build upon it as i learn more.
I have four fields:
name = fldName
email = fldEmail
phone = fldPhone
engine = fldEngine
I have attached a code snipplet of my PHP script
The script executes, but when i receive the email (email address in script is not real email address), all i receive is the following:
I receive the Name the subject line
I receive the Email in the body of the email
I dont get a phone or a engine anywehere in the email
Question1: Why is the Name showing in the subject ?
Question 2: Why don't i get Phone or Engine in the body?
Question 3: How can I make my from say something other than my IP's email address.
$name = $_REQUEST['fldName'] ;
$email = $_REQUEST['fldEmail'] ;
$phone = $_REQUEST['fldPhone'] ;
$engine = $_REQUEST['fldEngine'] ;
mail("firstname.lastname@example.org", "Name: $name", "Email: $email", "Phone: $phone", "Engine: $engine");
echo "Thank you for using our mail form";