0 Replies Latest reply on May 17, 2010 9:42 PM by Bfordmon

    Trouble with 'Thank you@ page

    Bfordmon

      Hi,

       

      I'm new to web development and I am having a problem. I have created a comment form and am using PHP script for extraction. All the form info is going to the mail box and so the form and the script for it is working fine. However, I cannot get the Thank you page to appear.

       

      This is the PHP script that I am using. It's working fine except for the thank you page (messagesent.html)

       

      <?php 
       
          $ToEmail = 'info@jenniescandles.net'; 
          $EmailSubject = 'Contact form '; 
          $mailheader .= "From: ".$_POST["contactEmail"]."\r\n"; 
          $mailheader .= "Reply-To: ".$_POST["contactEmail"]."\r\n"; 
          $mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
          $MESSAGE_BODY .= "Name: ".$_POST["contactName"]."<br>"; 
          $MESSAGE_BODY .= "Email address: ".$_POST["contactEmail"]."<br>"; 
          $MESSAGE_BODY .= "Telephone: ".$_POST["contactTelephone"]."<br>";
          $MESSAGE_BODY .= "Subject: ".$_POST["contactSubject"]."<br>";
          $MESSAGE_BODY .= "Message: ".nl2br($_POST["contactMessage"])."<br>";
          
          $sent = mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader);
          if($sent) 
       {header( "Location: http://www.jenniescandles.net/messagesent.html" );}
       else 
       {print "We encountered an error sending your comment"; }
      ?> 
      

      Any suggestions?

       

      Sorry, in wrong forum. Should be in application development. Message was edited by: Bfordmon