Results 1 to 15 of 15

Thread: thank you page problem
      
   

  1. #1
    TWO CATS's Avatar
    TWO CATS is offline First Lieutenant
    Join Date
    Feb 2006
    Location
    brisbane australia
    Posts
    192

    Default 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

  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  3. #3
    TWO CATS's Avatar
    TWO CATS is offline First Lieutenant
    Join Date
    Feb 2006
    Location
    brisbane australia
    Posts
    192

    Default 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))
    {

  4. #4
    Vasili's Avatar
    Vasili is online now Moderator
    Join Date
    Mar 2006
    Posts
    13,611

    Wink 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 *

  5. #5
    TWO CATS's Avatar
    TWO CATS is offline First Lieutenant
    Join Date
    Feb 2006
    Location
    brisbane australia
    Posts
    192

    Default 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?

  6. #6
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  7. #7
    TWO CATS's Avatar
    TWO CATS is offline First Lieutenant
    Join Date
    Feb 2006
    Location
    brisbane australia
    Posts
    192

    Default 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);
    ?>

  8. #8
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default 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!

  9. #9
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  10. #10
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: thank you page problem

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

    Andy
    PHP- is a blast!

  11. #11
    TWO CATS's Avatar
    TWO CATS is offline First Lieutenant
    Join Date
    Feb 2006
    Location
    brisbane australia
    Posts
    192

    Default 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

  12. #12
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  13. #13
    TWO CATS's Avatar
    TWO CATS is offline First Lieutenant
    Join Date
    Feb 2006
    Location
    brisbane australia
    Posts
    192

    Default 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

  14. #14
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  15. #15
    TWO CATS's Avatar
    TWO CATS is offline First Lieutenant
    Join Date
    Feb 2006
    Location
    brisbane australia
    Posts
    192

    Default Re: thank you page problem

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49