Thats part of my email script, when I click the submit button none of that echos on the page, is there anything wrong with this script?PHP Code:<?
if($word_ok!==false)
{
if($word_ok=="yes")
{
$to=$_POST['to'];
$subject=$_POST['subject'];
$body=$_POST['body'];
$from=$_POST['from'];
$headers = "From: $from" . "\r\n" .
'MIME-Version: 1.0' . "\r\n" .
'Content-type: text/html; charset=iso-8859-1' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
//mail($to,$subject,$body,$headers);
if (@mail ($to, $subject, $body, $headers)) {
echo "Email successfully sent to $to.";
echo "<Br>Click <a href='mail.php'>here</a> to send another.<br />";
} else {
echo "Error sending email!";
}
} else {
echo "The word you entered for the image verification did not match what was displayed.<br />";
}
}
?>
If you want rest of the script then I'm using freeCap PHP CAPTCHA Version 1.4.1




Reply With Quote