Home > DeveloperSection > Forums > PHP send mail error
Sanjay Sharma
Sanjay Sharma

Total Post:45

Posted on    January-01-2011 3:41 AM


 0 Reply(s)
 1546  View(s)
Rate this:
Hi guys please i need your help . i created a HTML/PHP form . The PHP form handles posting to my mail while the HTML is the front face / webpage . Anyway i created a form that has fields such as name (textbox), email(textbox) , inquiry(textarea) , state (textbox) country (dropdown list ) , how did you find us (dropdown list). However whenever i test the form all it posts to my mailbox is name , email , inquiry .  Please how do i make the other fields get recognized / how do i get the details in the other fields to be posted to my mailbox.

$name =  $_POST['username'];
$email = $_POST['email'];
$text = $_POST['inquiry'];

//To, Subject, Message, Header
mail('support@mysite.com','basic inquiry',"$text",'From: '.

$name .'<' . $email  . '>');

header('location: step3.html')


Don't want to miss updates? Please click the below button!

Follow MindStick