thank you page problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • TWO CATS
    First Lieutenant

    • Feb 2006
    • 192

    thank you page problem

    my thank you page shows this error
    Parse error: syntax error, unexpected T_STRING in /home/tsghkxhs/public_html/magicpallete/action.php on line 38

    I don't know what this means or how to correct it. could someone please check it and help to fix it ?
    I have reviewed the forms tutorial many times and can't see where I went wrong
    Thanks
    Two cats
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #2
    Re: thank you page problem

    It means that you have made some mistake when pasting or editing the php code in your thankyou page. Post it here and we will have a look
    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

    • TWO CATS
      First Lieutenant

      • Feb 2006
      • 192

      #3
      Re: thank you page problem


      Thanks navel design this is what ai have put in .I bet it is something simple and I can't see it .
      thanks again
      Two Cats




      <?PHP
      $mailto = "colleen@magicpallete.com";
      $email = $HTTP_POST_VARS['email'];
      if ($email == "") {
      $email = $mailto;
      }
      $mailsubj = "contactartist";
      $mailhead = "From: $email\n";
      reset ($HTTP_POST_VARS);
      $mailbody = "contactartist submission form
      while (list ($key, $val) = each ($HTTP_POST_VARS))
      {

      Comment

      • Vasili
        Moderator

        • Mar 2006
        • 14683

        #4
        Re: thank you page problem

        It is because you copied only part of the script:

        <?PHP
        $mailto = "youremail@yourdomain.com";
        $email = $HTTP_POST_VARS['email'];
        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);
        ?>


        Remember! This is only one part of a 2-part "form build" as described in the Tutorial, so be very attentive to how to complete the task exactly as described!
        . VodaWebs....Luxury Group
        * Success Is Potential Realized *

        Comment

        • TWO CATS
          First Lieutenant

          • Feb 2006
          • 192

          #5
          Re: thank you page problem

          sorry i made a mistake with paste and copy this is what I have in beggining of body
          <?PHP
          $mailto = "colleen@magicpallete.com";
          $email = $HTTP_POST_VARS['email'];
          if ($email == "") {
          $email = $mailto;
          }
          $mailsubj = "contactartist";
          $mailhead = "From: $email\n";
          reset ($HTTP_POST_VARS);
          $mailbody = "contactartist submission form
          while (list ($key, $val) = each ($HTTP_POST_VARS))
          {
          if ($key!="submit")
          {
          $mailbody .= "$key : $val\n";
          }
          }
          mail($mailto, $mailsubj, $mailbody, $mailhead);
          ?>

          $mailto = "colleen@magicpallete.com";
          $email = $HTTP_POST_VARS['email'];
          if ($email == "") {
          $email = $mailto;
          }
          $mailsubj = "contactartist";
          $mailhead = "From: $email\n";
          reset ($HTTP_POST_VARS);
          $mailbody = "contactartist submission form
          while (list ($key, $val) = each ($HTTP_POST_VARS))
          {
          if ($key!="submit")
          {
          $mailbody .= "$key : $val\n";
          }
          }
          mail($mailto, $mailsubj, $mailbody, $mailhead);
          ?>
          but still get that same error message.is it in the wrong place?

          Comment

          • navaldesign
            General & Forum Moderator

            • Oct 2005
            • 12080

            #6
            Re: thank you page problem

            Delete the part in red, it is a duplicate of the script, furthermore mistaken
            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

            • TWO CATS
              First Lieutenant

              • Feb 2006
              • 192

              #7
              Re: thank you page problem

              OK THIS IS WHATS IN THE HTML. i DON'T KNOW HOW THAT OTHER HAPPENED I have been struggling with this for 2 days I think I need some sleep or a stiff scotch.
              I hope you can help navel design
              thanks Two Cats



              <?PHP
              $mailto = "colleen@magicpallete.com";
              $email = $HTTP_POST_VARS['email'];
              if ($email == "") {
              $email = $mailto;
              }
              $mailsubj = "contactartist";
              $mailhead = "From: $email\n";
              reset ($HTTP_POST_VARS);
              $mailbody = "contactartist submission form
              while (list ($key, $val) = each ($HTTP_POST_VARS))
              {
              if ($key!="submit")
              {
              $mailbody .= "$key : $val\n";
              }
              }
              mail($mailto, $mailsubj, $mailbody, $mailhead);
              ?>

              Comment

              • Andy128
                Major General

                • Dec 2005
                • 2317

                #8
                Re: thank you page problem

                The code appears correct. It should be placed in the HTML portion of the page and you can put it "Begining of Body " or tag or "Inside body" - eiter will do.

                Also remember that it will not work unless published. Since I cannot find your magicpallette.com- I assume that you are published under a .biz or .org?


                Andy
                PHP- is a blast!

                Comment

                • navaldesign
                  General & Forum Moderator

                  • Oct 2005
                  • 12080

                  #9
                  Re: thank you page problem

                  Please View the ENTIRE page code and post it here.

                  Andy, the correct link to the form is http://www.magicpallete.com/contactartist.html

                  but it doesn't seem a form issue.
                  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

                  • Andy128
                    Major General

                    • Dec 2005
                    • 2317

                    #10
                    Re: thank you page problem

                    oh......I had missspelled pallete. Tks Navaldesign.

                    Andy
                    PHP- is a blast!

                    Comment

                    • TWO CATS
                      First Lieutenant

                      • Feb 2006
                      • 192

                      #11
                      Re: thank you page problem

                      This is the entire HTML sorry for delay, time zone difference.thank you
                      Two Cats

                      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                      <html>
                      <head>
                      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
                      <title>action</title>
                      <meta http-equiv="Page-Enter" content="revealTrans(Duration=1,Transition=6)">
                      <meta name="GENERATOR" content="Created by BlueVoda">
                      <style type="text/css">
                      div#container
                      {
                      width: 800px;
                      position: relative;
                      margin-top: 0px;
                      margin-left: auto;
                      margin-right: auto;
                      text-align: left;
                      }
                      body
                      {
                      text-align: center;
                      margin: 0;
                      }
                      </style>
                      </head>
                      <body bgcolor="#FFFFE0" text="#000000">
                      <?PHP
                      $mailto = "colleen@magicpallete.com";
                      $email = $HTTP_POST_VARS['email'];
                      if ($email == "") {
                      $email = $mailto;
                      }
                      $mailsubj = "contactartist";
                      $mailhead = "From: $email\n";
                      reset ($HTTP_POST_VARS);
                      $mailbody = "contactartist submission form
                      while (list ($key, $val) = each ($HTTP_POST_VARS))
                      {
                      if ($key!="submit")
                      {
                      $mailbody .= "$key : $val\n";
                      }
                      }
                      mail($mailto, $mailsubj, $mailbody, $mailhead);
                      ?>
                      <div id="container">
                      <div id="bv_" style="position:absolute;left:126px;top:16px;width :593px;height:504px;z-index:0" align="left">
                      <font style="font-size:13px" color="#000000" face="Arial">&nbsp; </font><font style="font-size:48px" color="#950095" face="Georgia"><b>MAGIC PALLETE .COM<br>
                      &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; ART GALLERY<br>
                      <br>
                      &nbsp;&nbsp;&nbsp; THANK YOU FOR <br>
                      &nbsp;&nbsp;&nbsp;&nbsp; YOUR ENQUIRY<br>
                      <br>
                      &nbsp;&nbsp;&nbsp; THE ARTIST WILL<br>
                      &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CONTACT YOU<br>
                      &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; SHORTLY</b></font></div>
                      <img src="butgeometric8.gif" id="Image1" alt="" align="top" border="0" width="187" height="66" style="position:absolute;left:305px;top:537px;widt h:187px;height:66px;z-index:1">
                      <div id="bv_" style="position:absolute;left:356px;top:561px;widt h:88px;height:19px;z-index:2" align="left">
                      <font style="font-size:13px" color="#000000" face="Arial">&nbsp;&nbsp;&nbsp; <a href="http://"> </font><font style="font-size:16px" color="#000000" face="Arial"><b>HOME</a></b></font></div>
                      </div>
                      </body>
                      </html>
                      the form page is contactartist.html and the thankyou page is action.php
                      thanks for your help
                      Two Cats
                      www.magicpallete.com

                      Comment

                      • navaldesign
                        General & Forum Moderator

                        • Oct 2005
                        • 12080

                        #12
                        Re: thank you page problem

                        Your problem is here:

                        <?PHP
                        $mailto = "colleen@magicpallete.com";
                        $email = $HTTP_POST_VARS['email'];
                        if ($email == "") {
                        $email = $mailto;
                        }
                        $mailsubj = "contactartist";
                        $mailhead = "From: $email\n";
                        reset ($HTTP_POST_VARS);
                        $mailbody = "contactartist submission form"; // Here is the problem

                        while (list ($key, $val) = each ($HTTP_POST_VARS))
                        {
                        if ($key!="submit")
                        {
                        $mailbody .= "$key : $val\n";
                        }
                        }
                        mail($mailto, $mailsubj, $mailbody, $mailhead);
                        ?>

                        You have forgotten the part in RED
                        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

                        • TWO CATS
                          First Lieutenant

                          • Feb 2006
                          • 192

                          #13
                          Re: thank you page problem

                          I don't understand the "; are there in the copy and paste and on the pageI'm sorry I'm just not getting it
                          Two Cats

                          Comment

                          • navaldesign
                            General & Forum Moderator

                            • Oct 2005
                            • 12080

                            #14
                            Re: thank you page problem

                            Sorry, i highlighted the wrong line, the problem is in the

                            $mailbody = "contactartist submission form";

                            line
                            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

                            • TWO CATS
                              First Lieutenant

                              • Feb 2006
                              • 192

                              #15
                              Re: thank you page problem

                              Thank !Thank You! Thank You I did it and it works
                              you are a genius Navel Design
                              Two cats

                              Comment

                              Working...
                              X