Results 1 to 5 of 5

Thread: Text doesn't echo..

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    7

    Text doesn't echo..

    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 />"; 
        }
    }
    ?>
    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?

    If you want rest of the script then I'm using freeCap PHP CAPTCHA Version 1.4.1
    Last edited by rscape; Jul 24th, 2007 at 06:33 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width