forum

Home / DeveloperSection / Forums / PHP send mail error

PHP send mail error

Anonymous User 2557 01-Jan-2011
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')
?>

php php 
Updated on 01-Jan-2011
I am a content writter !

Can you answer this question?


Answer

0 Answers

Liked By