Announcement

Collapse
No announcement yet.

php contact form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    php contact form

    I'm using a php form with captcha on surf-wax (DW pages), I now want to use this within acatalog, but I keep breaking it!

    The form is fine, I've changed the contact link to go to ../contact.php as the form is in the root. BUT I want ot add a bit of code to direct customers back to shopping after they have sent the message.

    The original code is

    $msg_sent = "<h2>Thank you!</h2><p>Your message has been sent!</p>";
    I want to have
    // SUCCESS MESSAGE
    // Shown when message has been sent (you can use html tags).

    $msg_sent = "<h2>Thank you!</h2><p>Click <a href="acatalog/index.html">here</a> to continue shopping</p>";
    when I use this code the contact form doesn't show.

    contact.php calls formmailer.php to process the form, the above code is in formmailer

    Help?

    #2
    Code:
    $msg_sent = "<h2>Thank you!</h2><p>Click <a href="acatalog/index.html">here</a> to continue shopping</p>";
    I think you need to change the second and third quotes to single quotes, I think the second (and subsequent quotes) are ending the $msg_sent

    Alternatively try putting a \ before the second and third quote ie \"

    Comment


      #3
      Thanks Kevin, that did the trick

      Comment

      Working...
      X