Results 1 to 13 of 13

Thread: form assistance required
      
   

  1. #1
    QuantumPhotography's Avatar
    QuantumPhotography is offline Master Sergeant
    Join Date
    Nov 2006
    Location
    Hobart, Australia
    Posts
    67

    Wink form assistance required

    Hi All,

    I have watched the adding form tutorials and followed the instructions...I think.

    My contacts page has a very quick form on it, as I am just testing it works before completing properly and tidying up.

    When i fill out the info I get the following error?

    Parse error: syntax error, unexpected '<' in /home/cqpclcrh/public_html/action.php on line 51

    Any ideas anyone

    www.quantumphotography.net

    On the contact page
    Photography is a snapshot of a time in your life.
    http://www.quantumphotography.net

    Websites you dream of... www.quantumwebworks.com

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

    Default Re: Problem with form

    You have probably (i cant see the php code) missed the script closing tag: "?>" or only the ">"
    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
    QuantumPhotography's Avatar
    QuantumPhotography is offline Master Sergeant
    Join Date
    Nov 2006
    Location
    Hobart, Australia
    Posts
    67

    Default Re: Problem with form

    Hi Naval,

    I will have a look when I get home from work and see if I can see something. I copied the text straight from the tutorial as it said, but in which way can I show you the text to see if anything is missing??

    Thanks Darren
    Photography is a snapshot of a time in your life.
    http://www.quantumphotography.net

    Websites you dream of... www.quantumwebworks.com

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

    Default Re: Problem with form

    Copy the script from your page and post it here
    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!


  5. #5
    QuantumPhotography's Avatar
    QuantumPhotography is offline Master Sergeant
    Join Date
    Nov 2006
    Location
    Hobart, Australia
    Posts
    67

    Default Re: form assistance required

    Hi Naval, I tried a few things but to no avail. Here is the script

    <?PHP
    $mailto = "enquiries@quantum photography.net";
    $email = $HTTP_POST_VARS[email];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Photography Enquiry";
    $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);

    Where contact page has action.php is it a difference if Thank you message page is titled Thank You, but of course published as php.

    Thanks Darren
    Photography is a snapshot of a time in your life.
    http://www.quantumphotography.net

    Websites you dream of... www.quantumwebworks.com

  6. #6
    QuantumPhotography's Avatar
    QuantumPhotography is offline Master Sergeant
    Join Date
    Nov 2006
    Location
    Hobart, Australia
    Posts
    67

    Default Re: form assistance required

    I added the ?>, that I seen was missing both to Start of page and alternatively Beggining of body and published both times to no avail. Also noticed in email the space between quantum and photography and fixed that.

    But it still wont work......Please help...lol
    Photography is a snapshot of a time in your life.
    http://www.quantumphotography.net

    Websites you dream of... www.quantumwebworks.com

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

    Default Re: form assistance required

    Please post here the entire page code
    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!


  8. #8
    QuantumPhotography's Avatar
    QuantumPhotography is offline Master Sergeant
    Join Date
    Nov 2006
    Location
    Hobart, Australia
    Posts
    67

    Default Re: form assistance required

    Here you go,

    <?PHP
    $mailto = "enquiries@quantumphotography.net";
    $email = $HTTP_POST_VARS[email];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Photography Enquiry";
    $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);
    ?>
    <!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="blendTrans(Duration=1)">
    <meta http-equiv="Page-Exit" content="blendTrans(Duration=1)">
    <meta http-equiv="Site-Enter" content="blendTrans(Duration=1)">
    <meta http-equiv="Site-Exit" content="blendTrans(Duration=1)">
    <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>
    <style type="text/css">
    img { behavior: url("pngfix.***"); }
    </style>
    </head>
    <body bgcolor="#000000" text="#FFFFE0">
    <div id="container">
    <div id="bv_" style="position:absolute;left:1px;top:145px;width: 139px;height:27px;z-index:0" align="left">
    <script language="JavaScript" type="text/javascript">
    <!--
    RollOver1 = new Image();
    RollOver1.src = "Home02.bmp";
    //-->
    </script>
    <a href="http://www.quantumphotography.net" target="_self">
    <img src="Home01.bmp" id="RollOver1" width="139" height="27" alt="" border="0" onMouseOver="this.src='Home02.bmp'" onMouseOut="this.src='Home01.bmp'">
    </a>
    </div>
    <div id="bv_" style="position:absolute;left:331px;top:193px;widt h:139px;height:27px;z-index:1" align="left">
    <script language="JavaScript" type="text/javascript">
    <!--
    RollOver2 = new Image();
    RollOver2.src = "Portraits1.bmp";
    //-->
    </script>
    <a href="http://www.quantumphotography.net/portraits.html" target="_self">
    <img src="Portraits.bmp" id="RollOver2" width="139" height="27" alt="" border="0" onMouseOver="this.src='Portraits1.bmp'" onMouseOut="this.src='Portraits.bmp'">
    </a>
    </div>
    <div id="bv_" style="position:absolute;left:163px;top:169px;widt h:139px;height:27px;z-index:2" align="left">
    <script language="JavaScript" type="text/javascript">
    <!--
    RollOver3 = new Image();
    RollOver3.src = "Corporate1.bmp";
    //-->
    </script>
    <a href="http://www.quantumphotography.net/corporate.html" target="_self">
    <img src="Corporate.bmp" id="RollOver3" width="139" height="27" alt="" border="0" onMouseOver="this.src='Corporate1.bmp'" onMouseOut="this.src='Corporate.bmp'">
    </a>
    </div>
    <div id="bv_" style="position:absolute;left:501px;top:169px;widt h:139px;height:27px;z-index:3" align="left">
    <script language="JavaScript" type="text/javascript">
    <!--
    RollOver4 = new Image();
    RollOver4.src = "Links1.bmp";
    //-->
    </script>
    <a href="http://www.quantumphotography.net/links.html" target="_self">
    <img src="Links.bmp" id="RollOver4" width="139" height="27" alt="" border="0" onMouseOver="this.src='Links1.bmp'" onMouseOut="this.src='Links.bmp'">
    </a>
    </div>
    <div id="bv_" style="position:absolute;left:665px;top:145px;widt h:139px;height:27px;z-index:4" align="left">
    <script language="JavaScript" type="text/javascript">
    <!--
    RollOver5 = new Image();
    RollOver5.src = "Contact1.bmp";
    //-->
    </script>
    <a href="http://www.quantumphotography.net/contact.html" target="_self">
    <img src="Contact.bmp" id="RollOver5" width="139" height="27" alt="" border="0" onMouseOver="this.src='Contact1.bmp'" onMouseOut="this.src='Contact.bmp'">
    </a>
    </div>
    <img src="bv01014.png" align="top" alt="" border="0" width="451" height="152" style="position:absolute;left:175px;top:11px;width :451px;height:152px;z-index:5">
    <div id="bv_" style="position:absolute;left:178px;top:299px;widt h:540px;height:108px;z-index:6" align="center">
    <font style="font-size:32px" color="#FFD700" face="Arial">Thank You for your email<br>
    <br>
    We will be in contact with you shortly</font></div>
    </div>
    </body>
    </html>
    Photography is a snapshot of a time in your life.
    http://www.quantumphotography.net

    Websites you dream of... www.quantumwebworks.com

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

    Default Re: form assistance required

    I can't see anything wrong with your script. On the other hand, line 51 is NOT the php script part. So unless this is NOT the actual code of your action page, there must be something else wrong.
    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
    QuantumPhotography's Avatar
    QuantumPhotography is offline Master Sergeant
    Join Date
    Nov 2006
    Location
    Hobart, Australia
    Posts
    67

    Default Re: form assistance required

    Hi Naval,

    I have the contacts page with the fields on it and that is saved as Contacts...with action.php in the required field....I then made a thank you page this is where i added the script and saved that as php not html.....that is the page i added the code from....this is all correct so far isnt it?????
    Photography is a snapshot of a time in your life.
    http://www.quantumphotography.net

    Websites you dream of... www.quantumwebworks.com

  11. #11
    QuantumPhotography's Avatar
    QuantumPhotography is offline Master Sergeant
    Join Date
    Nov 2006
    Location
    Hobart, Australia
    Posts
    67

    Default Re: form assistance required

    All fixed now, had paged saved as thankyou.php, but also action.php in file manager. So deleted and saved a fresh copy and bingo.

    Thanks for helping.
    Photography is a snapshot of a time in your life.
    http://www.quantumphotography.net

    Websites you dream of... www.quantumwebworks.com

  12. #12
    lovejesusfirst is offline Corporal
    Join Date
    Apr 2007
    Location
    Roselle
    Posts
    11

    Default Re: Thank you form

    hELLLLLLP,Hi, I really need help, I've I'm having problems trying to create my thank you form, been trying for months, I think I have everyone beat on watching the form video tutorial, about 20 times, over and over and over again, it looks so simple but yet I can't get it right, the coding below is what keeps popping in when I go to I right click into HTML, I even created a new thank you page thinking that may have been the problem, can you please help me, I feel helpless,
    My web page address is www.upperroommin.com

    Provi

    ----------------------------

    <!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>Thank You</title>
    <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="#FFFFFF" text="#000000">
    <div id="container">
    <div id="bv_" style="position:absolute;left:379px;top:234px;widt h:221px;height:108px;z-index:0" align="left">
    <font style="font-size:24px" color="#00005E" face="Arial">Thank you for your <br>
    e-mail, we will contact you as soon as we can.</font></div>
    <div id="bv_" style="position:absolute;left:634px;top:163px;widt h:278px;height:168px;z-index:1" align="left">
    <img src="bv01078.gif" id="Shape2" align="top" alt="" border="0" width="278" height="168"></div>
    <div id="bv_" style="position:absolute;left:646px;top:181px;widt h:253px;height:134px;z-index:2" align="left">
    <img src="bv01079.gif" id="Shape1" align="top" alt="" border="0" width="253" height="134"></div>
    <div id="bv_" style="position:absolute;left:676px;top:235px;widt h:192px;height:44px;z-index:3" align="left">
    <font style="font-size:19px" color="#FFFF80" face="Arial"><b>God answers prayer</b></font></div>
    <img src="landscapeJohn836framebuttongr[1].gif" id="Image2" alt="" align="top" border="0" width="288" height="427" style="position:absolute;left:25px;top:56px;width: 288px;height:427px;z-index:4">
    <div id="bv_" style="position:absolute;left:406px;top:51px;width :150px;height:16px;z-index:5" align="left">
    <font style="font-size:13px" color="#000000" face="Arial">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.upperroommin.com/index.html">Home</a></font></div>
    </div>
    </body>
    </html>

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

    Default Re: form assistance required

    That code is the html code for your thank you page.

    I cannot find your action.php page. I suspect that you have the php code in the thankyou.php page. If that is the case- change the action in the form to thankyou.php instead of action.php.
    Andy
    PHP- is a blast!

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