Im making a simple submit form. When the email sends I get a blank email. Can someone see the problem?
[php]<?php
$action=$_REQUEST[‘action’];
if ($action=="") /* display the contact form /
{
?>
First Name:
Last Name:
Email Address:
Verify Email:
<?php
}
else / send the submitted data */
{
$fname=$_REQUEST[‘fname’];
$lname=$_REQUEST[‘lname’];
$email=$_REQUEST[‘email’];
$vemail=$_REQUEST[‘vemail’];
if (($fname=="")||($lname=="")||($email=="")|| ($vemail==""))
{
echo "All fields are required, please fill <a href=\"\">the form</a> again.";
}
else{
$from="From: $name<$email>\r\nReturn-path: $email";
$subject="Message sent using your contact form";
mail("@.com", $subject, $fname, $lname, $email, $vemail, $from);
echo "Email sent!";
}
}
?>
[/php]