PHP SEND MAIL ERROR

Sanjay Sharma

Total Post:45

Points:315
Posted by  Sanjay Sharma
PHP 
PHP
 1570  View(s)
Ratings:
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.
<?php

$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')

?>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!