I have this inquiry form. I wish to capture the fields and email via php script. Can anyone help me in doing that?
It uses html text field, select and textarea form elements.. In select name I wish to capture and email the option selected.Name:
Enquiry For: Joining Courses Franchisee Corporate Training Others
Thanks a million in advance
if you want to send your inquiry form on your mail then use the below script:
if (isset($_POST['enquire'])) //Getting data from form.
$name = $_POST['name'];
$email = $_POST['email'];
$phone_no = $_POST['phone'];
$inqfor = $_POST['cmcenquiryform'];
$query = $_POST['query'];
$to = 'your email goes here'; //Change this with your email address.
$sunject = "Inquery form Submitted by $name"; //your subject goes here.
$message = "
Here are the Inquiry Received by User!Name:$name Email:$email Phone Number:$phone_no Inquiry for:$inqfor Query:$query
"; //Your Message Goes Here. edit with your requirement.
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= ...