[snip]
<?php
if ($TextArea="") {
echo "You have to fill out the entire form,
go back and try again.";
} else {
$to = "[EMAIL PROTECTED]";
$from = "From-Test";
$subject = "Subject-Test";
$message = "$TextArea";
mail($to, $subject, $message,"From: $from");
echo "Thankyou";
}
?>
[/snip]


What is happening when the form is posted?

This is just a guess, but I think registar_globals is probaby off.  try
this

<?php
if ($_POST['TextArea']="") {
echo "You have to fill out the entire form,
go back and try again.";
} else {
$to = "[EMAIL PROTECTED]";
$from = "From-Test";
$subject = "Subject-Test";
$message = "$TextArea";
mail($to, $subject, $message,"From: $from");
echo "Thankyou";
}
?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to