Hell all. I am having troubles with a mail form on my site, located here. When I go to send the mail, it just sits there loading for a while, and then eventually gives me an error saying somethign like "This document contains no data". Here is the source code for the script:
// makes sure no required fields were left blank
if($name == "" || $email == "" || $comment == "" || $sub == "")
{
print("One or more of the required fields was not filled in. Please go back and try again.");
include('includes/footer.xml');
exit;
}
mail("dandaman_91@yahoo.ca", $sub, "$name\n$email\n$com");
?>
Here is the lines in my php.ini file that refer to the mail function:
// makes sure no required fields were left blank
if($name == "" || $email == "" || $comment == "" || $sub == "")
{
print("One or more of the required fields was not filled in. Please go back and try again.");
include('includes/footer.xml');
exit;
}
mail("dandaman_91@yahoo.ca", $sub, "$name\n$email\n$com");
?>
CTB
Oh Lord, please help me be the person my dog thinks I am.
// makes sure no required fields were left blank
if($name == "" || $email == "" || $comment == "" || $sub == "")
{
print("One or more of the required fields was not filled in. Please go back and try again.");
include('includes/footer.xml');
exit;
}
if (mail("dandaman_91@yahoo.ca", $sub, $name."\n".$email."\n".$com)){
echo "Done";
}else {
echo "Failed";
}
?>
"There are only two forces in the world, the sword and the spirit. In the long run the sword will always be coquered by the spirit!" Napoleon Bonaparte
Bookmarks