Form submission
Posted: Wed Apr 20, 2011 3:53 am
I need somebody to come to my rescue. I have a contact page of my website that handles form from the users but when users submit submit the form from the contact page i don't get to recieve it in the designated webmail account. here is the form_handler code.
<?php
error_reporting(E_ALL - (E_NOTICE + E_WARNING));
$first_name= $_POST["firstname"];
$last_name= $_POST["lastname"];
$email= $_POST["mail"];
$address= $_POST["address"];
$phone= $_POST["mobile"];
$textdata= nl2br($_POST["user_comment"]);
$to = "info@seapmicrofinance.org";
$from = "".$_POST["mail"]."";
$subject = "Online Form";
$message = "Online Form
Hello,
First Name: $first_name
Last Name: $last_name
Email: $email
Address: $address
Phone: $phone
Comment: $textdata ";
$headers = "<info@successpalace.com>\r\n";
$headers .= "Content-type: text/html\r\n";
mail($to, $subject, $message, $headers);
?>
<?php
error_reporting(E_ALL - (E_NOTICE + E_WARNING));
$first_name= $_POST["firstname"];
$last_name= $_POST["lastname"];
$email= $_POST["mail"];
$address= $_POST["address"];
$phone= $_POST["mobile"];
$textdata= nl2br($_POST["user_comment"]);
$to = "info@seapmicrofinance.org";
$from = "".$_POST["mail"]."";
$subject = "Online Form";
$message = "Online Form
Hello,
First Name: $first_name
Last Name: $last_name
Email: $email
Address: $address
Phone: $phone
Comment: $textdata ";
$headers = "<info@successpalace.com>\r\n";
$headers .= "Content-type: text/html\r\n";
mail($to, $subject, $message, $headers);
?>