Results 1 to 13 of 13

Thread: form help please!
      
   

  1. #1
    cre8tivelegance is offline Sergeant
    Join Date
    Feb 2007
    Posts
    38

    Default form help please!

    Hi!

    Ok, I've watched the tututorials at least a 100 times and I'm still not able to make my form work. At least now when I click on the "submit" button I'm getting an error page......wasn't able to make that happen before.

    I did notice a slight conflict in the tutorial......in the video, it says to click on the "inside body tag" and then when you read the tututorial, it says to click on the "between head tag"............I've played around with both and nothing seems to work.

    Can you please tell me what I'm doing wrong. My website is: greatcandlesbymary.com I have published this but I know I have a lot of things I need to fix.....one step at a time and for right now, I'm fixing the "special request" and "contact us" pages. The one I'm working on right now is the "special request" so please help me with this one and then I will know what to do with the "contact us" page. Thanks!

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

    Default Re: form help please!

    Ok. Here it goes: your submit and reset buttons are outside the form area. and that's why they will not work. Extend the form area to cover these two buttons, then delete them and recreate them (or copy them, delete them, and paste them back) Then test your form.

    It is not important if you place the php code in the between head or start of page. It would be important if your script performed validation and redirecetedto an error page in which case it should be in the Start of Page.
    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
    cre8tivelegance is offline Sergeant
    Join Date
    Feb 2007
    Posts
    38

    Default Re: form help please!

    It's me again.....ok, I fixed the submit and reset buttons as noted. I'm still getting the error page when I submit. I've put the php script in both the Head (saved it and published it) and start, saved it and published it and still doesn't work. I tried it both ways.

    I'm wondering if it has anything to do with my email setup that I've done on my cpanel? Could you check this and make sure I did this right as well?

    Thanks for your help :)

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

    Default Re: form help please!

    Both the submit and the reset buttons are still outside the form are, in both Contact and Special Requests pages. And, they don't take me to an error page, they just do nothing.

    And, pasting the script in both the head and the body, means that you will (when it will work) two messages, as the script is pasted twice.

    However, your action page also has some problem as when i try it it gives me a purse error in line 36.
    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
    cre8tivelegance is offline Sergeant
    Join Date
    Feb 2007
    Posts
    38

    Default Re: form help please!

    Okay.....after checking my pages I realized I didn't publish the page after saving it so it should work now....that is, after you hit the submit button it will bring you to the error page.

    Not sure what you mean by this: "However, your action page also has some problem as when i try it it gives me a purse error in line 36."

    Can you explain this further? Thanks!

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

    Default Re: form help please!

    No, your pages (both) are still the same.

    The action page problem: if someone goes straight to the action page, the php script that is in it breaks down in line 36. Click on http://www.greatcandlesbymary.com/action.php to see what i mean.
    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
    cre8tivelegance is offline Sergeant
    Join Date
    Feb 2007
    Posts
    38

    Default Re: form help please!

    okay......I do believe I got the pages correct now. Hopefully you can view them now. But I'm still getting the error you mentioned earlier. I have no clue what the error means.....I'm very new to website design so all of this is like a foreign language to me....sorry for my ignorance and thank you for your patience with all of us who are like me! :)

    I've copied below my entire script so hopefully you can view what is wrong and please......know my ignorance and help me with step by step instructions on how to fix it......thanks!

    <!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>
    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "admin@greatcandlesbymary.com";
    $mailsubj = "request form submission";
    $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);
    ?>




    <META name="GENERATOR" content="Created by BlueVoda">
    <STYLE type="text/css">
    div#container
    {
    width: 885px;
    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">
    <IMG src="m_042.gif" alt="" align="top" border="0" width="792" height="600" style="position:absolute;left:1px;top:0px;width:79 2px;height:600px;z-index:0">
    <DIV style="position:absolute;left:58px;top:15px;width: 570px;height:63px;z-index:1" align="left">
    <FONT style="font-size:48px" color="#000000" face="Lucida Handwriting"><U>Creative Elegance</U></FONT>
    </DIV>
    <DIV style="position:absolute;left:65px;top:83px;width: 483px;height:24px;z-index:2" align="left">
    <FONT style="font-size:19px" color="#000000" face="Lucida Handwriting">&quot;Creating the Ambiance of Simple Elegance&quot;</FONT>
    </DIV>
    <DIV style="position:absolute;left:0px;top:298px;width: 800px;height:659px;z-index:3" align="left">
    <A href="http://www.greatcandlesbymary.com/thankyou.html"><IMG src="bv01064.gif" alt="" border="0" width="800" height="659"></A>
    </DIV>
    <DIV style="position:absolute;left:14px;top:270px;width :109px;height:58px;z-index:4" align="left">
    <A href="http://www.greatcandlesbymary.com"><IMG src="bv01065.gif" alt="" border="0" width="109" height="58"></A>
    </DIV>
    <DIV style="position:absolute;left:164px;top:268px;widt h:539px;height:144px;z-index:5" align="center">
    <FONT style="font-size:32px" color="#000000" face="Arial">Thank you for your request!<BR>
    <BR>
    If required, we will be in contact with you shortly!</FONT>
    </DIV>
    <DIV style="position:absolute;left:50px;top:290px;width :39px;height:32px;z-index:6" align="left">
    <FONT style="font-size:13px" color="#000000" face="Arial"><B>Home</B></FONT>
    </DIV>
    </DIV>
    </BODY>
    </HTML>

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

    Default Re: form help please!

    You have missed a part in your script, probably a mistake in copy / paste. I have added the missing part in red color.

    And, your submit button should be named "submit", not "Submit"
    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!


  9. #9
    cre8tivelegance is offline Sergeant
    Join Date
    Feb 2007
    Posts
    38

    Default Re: form help please!

    YEEEEAHHHHH! It finally works......what an eye for detail! Thank you very much!!!!!

    I went over and over that script to see if I had missed anything and of course, if I'm not sure what I'm looking for i'm not going to know that I missed copying and pasting all of the script......I thought I had, but obviously didn't.

    At least next time, I'll know to check for this specifically. I'm a work in progress (as well as my website) and I'm learning stuff all the time.

    Thanks again!!!!!!!

  10. #10
    cre8tivelegance is offline Sergeant
    Join Date
    Feb 2007
    Posts
    38

    Default Re: form help please! edited:another problem

    okay....I had this problem once before....thought I had it fixed....I did get it to work but it doesn't now. I've rechecked and rechecked everything that was in this posting and still can't find the problem.

    The one thing I did different was name my action page: thankyou.html. I did reflect this in my form on the contact page as thankyou.php.......is this where my problem is? should my form still say action.php?

    www.greatcandlesbymary.com

    thanks!

  11. #11
    Malhoeira's Avatar
    Malhoeira is offline Second Lieutenant
    Join Date
    Mar 2007
    Location
    Portugal
    Posts
    120

    Default Re: form help please!

    Can't help you with anything technical but I did notice that you have sight instead of site on your home page. Should be: you've come to the right site ... It's a beautiful site! Good luck with the forms.

  12. #12
    cre8tivelegance is offline Sergeant
    Join Date
    Feb 2007
    Posts
    38

    Default Re: form help please!

    Thanks for noticing my spelling error......always like the eye for detail! appreciate your help! Have a blessed day!

  13. #13
    cre8tivelegance is offline Sergeant
    Join Date
    Feb 2007
    Posts
    38

    Default Re: form help please!

    ummmm....now that's weird, I just tried my contact us page, submitted it and it now works?????? wonder what's up with that?

    Can someone else submit a "test" page through my contact us link to see if they have any problems?

    Thanks!

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