form help please!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • cre8tivelegance
    Sergeant

    • Feb 2007
    • 38

    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!
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #2
    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!

    Comment

    • cre8tivelegance
      Sergeant

      • Feb 2007
      • 38

      #3
      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 :)

      Comment

      • navaldesign
        General & Forum Moderator

        • Oct 2005
        • 12080

        #4
        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!

        Comment

        • cre8tivelegance
          Sergeant

          • Feb 2007
          • 38

          #5
          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!

          Comment

          • navaldesign
            General & Forum Moderator

            • Oct 2005
            • 12080

            #6
            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!

            Comment

            • cre8tivelegance
              Sergeant

              • Feb 2007
              • 38

              #7
              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>

              Comment

              • navaldesign
                General & Forum Moderator

                • Oct 2005
                • 12080

                #8
                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!

                Comment

                • cre8tivelegance
                  Sergeant

                  • Feb 2007
                  • 38

                  #9
                  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!!!!!!!

                  Comment

                  • cre8tivelegance
                    Sergeant

                    • Feb 2007
                    • 38

                    #10
                    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!

                    Comment

                    • Malhoeira
                      Second Lieutenant

                      • Mar 2007
                      • 121

                      #11
                      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.
                      Sarah
                      british-cemetery-elvas.org

                      Comment

                      • cre8tivelegance
                        Sergeant

                        • Feb 2007
                        • 38

                        #12
                        Re: form help please!

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

                        Comment

                        • cre8tivelegance
                          Sergeant

                          • Feb 2007
                          • 38

                          #13
                          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!

                          Comment

                          Working...
                          X