Problems with my Thank You page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Stream Me
    Private First Class

    • May 2007
    • 6

    Problems with my Thank You page

    Hello, so i followed the tutorials and have published my pages with forms however my thank you page comes up with the following message when i subscribe.

    Parse error: syntax error, unexpected '"' in /home/mtonisjf/public_html/action.php on line 10

    My webpage is:

    www.stream-memobile.com

    Heres the problem page:



    I have contact forms on three pages so i really need my thank you page to work i put this script in to the html code box is it correct:

    <?PHP
    $mailto = "nicholasmdobbs********.com";
    $email = "contact form submission;
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Type your mail subject here";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form :\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>

    Thanks for your help in advance guys, i have to have this finished by tommorow for my university product so pressure is on.

    Thanks, Nick
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #2
    Re: Problems with my Thank You page

    Third line should be:

    $email = "contact form submission";

    You have missed the " at the end.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment

    • Stream Me
      Private First Class

      • May 2007
      • 6

      #3
      Re: Problems with my Thank You page

      thanks mate your a life saver

      Comment

      • navaldesign
        General & Forum Moderator

        • Oct 2005
        • 12080

        #4
        Re: Problems with my Thank You page

        You are very welcome!
        Navaldesign
        Logger Lite: Low Cost, Customizable, multifeatured Login script
        Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
        DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
        Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

        Comment

        Working...
        X