another forms question

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • matthias
    Private

    • Jan 2006
    • 1

    #16
    Re: another forms question

    please i want to have my own website so that i can promote bluevoda.

    Comment

    • JHGD
      Corporal

      • Feb 2006
      • 18

      #17
      Re: another forms question

      Originally posted by Pablo
      If you have a <, you have copied invalid code into the HTML box. Looking at your code it contains several errors, so please follow these instructions carefully and ignore any other versions of this script on the forum;)
      Anyway here's the correct code and implementation one more time:
      1. Create a new page with BlueVoda (let's say feedbackform.bvp)
      2. Drag the Form object to the page and a draw a box to indicate the position of the form.
      3. Design your form by adding some Form controls to the form:
      Buttons, Image Buttons, Advanced Buttons, Checkboxes, Radio buttons, Editboxes, Text Areas and Comboboxes.
      You can also make text and images part of the form.

      Notice that all objects become a part of the form, so when you change the position of the form all those objects move along.

      4. Make sure your form contains a Submit button. Without this button the user will not be able to submit the entered data.

      5. Once you have designed your form, you may need to set some properties. Select the form and choose Edit|Properties from the BlueVoda menu.
      The most important thing you need to do is specify the form action.
      In this case we are going to use a second (PHP) page to process the results of the form and this will be the confirmation page at the same time.
      So set the action property to feedback.php
      and remove any text from the encoding type property.
      6. Publish the feedbackform.bvp page to your VodaHost account.

      7. Now let's create the confirmation page using BlueVoda:
      8. Create a new page with BlueVoda and save is as 'feedback.bvp'.
      9. Select View->Page HTML from the menu
      10. Select the Inside Body tag and enter this code:
      <?PHP
      $email = $HTTP_POST_VARS[email];
      $mailto = "feedback@yourdomain.com";
      $mailsubj = "Feedback form";
      $mailhead = "From: $email\n";
      reset ($HTTP_POST_VARS);
      $mailbody = "Values submitted from web site form:\n";
      while (list ($key, $val) = each ($HTTP_POST_VARS))
      {
      $mailbody .= "$key : $val\n";
      }
      mail($mailto, $mailsubj, $mailbody, $mailhead);
      ?>
      11. Do the usual page formatting with BlueVoda, for example add a textbox with the text "Thanks for your feedback, your comments have been processed!"
      12. Select View->Page Properties from the menu
      13. Set the file extension to php
      14. Publish the page feedback.bvp to your VodaHost account.

      Now you have two pages:
      1) a page with the feedback form
      2) a page that processes the input and displays a confirmation message.

      Notes:
      - Instead of feedback you can give it any name you like.
      - The blue text in the code above can be changed to anything you like, but be sure you keep the double quotes.

      Pablo








      Pablo

      I ahve copied these instructions to the letter. but it still doesn't work . I have Quoteform.html and Quote.php.

      When I submit my form I don't get an e mail in my inbox and I the page refers me to Can't find the page in IE !!

      What have i done wrong ? Any help would be most welcome !

      Thanks

      John

      Comment

      • navaldesign
        General & Forum Moderator

        • Oct 2005
        • 12080

        #18
        Re: another forms question

        Originally posted by JHGD
        Pablo

        I ahve copied these instructions to the letter. but it still doesn't work . I have Quoteform.html and Quote.php.

        When I submit my form I don't get an e mail in my inbox and I the page refers me to Can't find the page in IE !!

        What have i done wrong ? Any help would be most welcome !

        Thanks

        John
        Give me the URLs of your pages and i'll 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

        • JHGD
          Corporal

          • Feb 2006
          • 18

          #19
          Re: another forms question

          Hi

          Thanks for responding

          the urls are www.jhgd.co.uk/Quoteform.html and www.jhgd.co.uk/Quote.php

          Please note that you can at present only access the quote form page from the index page(homepage) the other navigation bars on the other pages have been set to a default of www.jhgd.co.uk/Quote.html cos its working correctly.

          Thanks

          John

          Comment

          • JHGD
            Corporal

            • Feb 2006
            • 18

            #20
            Re: another forms question

            Sorry should read its not working correctly ( the form that is !)

            Comment

            • navaldesign
              General & Forum Moderator

              • Oct 2005
              • 12080

              #21
              Re: another forms question

              Originally posted by JHGD
              Sorry should read its not working correctly ( the form that is !)
              Well, there are some errors in your form:

              1. You have set the "action" to "Quick.php" . As you said, your php page is Quote.php. That's why you get a 404 error. Correct it. It would be wise to change also your pages names in all lower case letters. (q instead of Q)
              2. You have three text field, all named "T1" that is the default name given by BV
              3. Your Radio buttons don't work. That's because you didn't gave them the same group name (f.e. "Lenght units" for the first two, "Width units" for the second group.)

              Another thing: sometimes Encoding"" doesn't work and you have to change it in "multipart/form data". Try first as it is, if it doesn't work try changing it.
              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

              • JHGD
                Corporal

                • Feb 2006
                • 18

                #22
                Re: another forms question

                Hi

                I have altered everything you said and it works beautifully. Thank you so much navaldesign your patience is much appreciated. Sometimes you can't see the wood for the trees and longer you look the more you can't see it. Or in my case seeing that Quote is indeed different to the word Quick !

                Thanks once again BV is the tops !

                John

                Comment

                • Bluenose
                  First Sergeant

                  • Feb 2006
                  • 71

                  #23
                  Re: another forms question

                  Originally posted by Pablo
                  <?PHP
                  $email = $HTTP_POST_VARS[email];
                  $mailto = "feedback@yourdomain.com";
                  $mailsubj = "Feedback form";
                  $mailhead = "From: $email\n";
                  reset ($HTTP_POST_VARS);
                  $mailbody = "Values submitted from web site form:\n";
                  while (list ($key, $val) = each ($HTTP_POST_VARS))
                  {
                  $mailbody .= "$key : $val\n";
                  }
                  mail($mailto, $mailsubj, $mailbody, $mailhead);
                  ?>
                  This all worked fine for me with the script. I want to take it a step further now and instead of having a simple, THANKYOU FOR YOUR FEEDBACK in text on an otherwise blank page, i would like it to happen like this.

                  Once the form has been submitted and auto sent to my inbox, i would like the re-direct to be straight back to my website and linked to a nicer, more professional page i have already built. I am sure that it is only a case of linking it all up but i wouldnt know where to put it within this script.

                  Thanks in advance.
                  www.hobta.co.uk

                  www.floridabungalow.co.uk

                  www.e-itstudy.com

                  www.gpcsystems.co.uk

                  Comment

                  • navaldesign
                    General & Forum Moderator

                    • Oct 2005
                    • 12080

                    #24
                    Re: another forms question

                    Originally posted by Bluenose
                    This all worked fine for me with the script. I want to take it a step further now and instead of having a simple, THANKYOU FOR YOUR FEEDBACK in text on an otherwise blank page, i would like it to happen like this.

                    Once the form has been submitted and auto sent to my inbox, i would like the re-direct to be straight back to my website and linked to a nicer, more professional page i have already built. I am sure that it is only a case of linking it all up but i wouldnt know where to put it within this script.

                    Thanks in advance.
                    Just add this line:

                    header("Location: http://www.yourdomain.com/thankyou_page.html");

                    before the ?> at the end of the script. Change thankyou_page.html to your page name.
                    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

                    • Bluenose
                      First Sergeant

                      • Feb 2006
                      • 71

                      #25
                      Re: another forms question

                      At the moment i am using this script. If you time, could you please type exactly what i should type and tell me where please mate.

                      <HTML>
                      <HEAD>
                      <TITLE>Thank you, you will be contacted soon.</TITLE>((dont want this))
                      </HEAD>
                      <BODY>
                      <H2>Thank you, you will be contacted soon.</H2>
                      <?PHP
                      $email = $HTTP_POST_VARS[email];
                      $mailto = "my email address";
                      $mailsubj = "New Order";
                      $mailhead = "From: $email\n";
                      reset ($HTTP_POST_VARS);
                      $mailbody = "Values submitted from web site form:\n";
                      while (list ($key, $val) = each ($HTTP_POST_VARS))
                      {
                      $mailbody .= "$key : $val\n";
                      }
                      mail($mailto, $mailsubj, $mailbody, $mailhead);
                      ?>
                      </BODY>
                      </HEAD>
                      www.hobta.co.uk

                      www.floridabungalow.co.uk

                      www.e-itstudy.com

                      www.gpcsystems.co.uk

                      Comment

                      • navaldesign
                        General & Forum Moderator

                        • Oct 2005
                        • 12080

                        #26
                        Re: another forms question

                        <?PHP
                        $email = $HTTP_POST_VARS[email];
                        $mailto = "my email address";
                        $mailsubj = "New Order";
                        $mailhead = "From: $email\n";
                        reset ($HTTP_POST_VARS);
                        $mailbody = "Values submitted from web site form:\n";
                        while (list ($key, $val) = each ($HTTP_POST_VARS))
                        {
                        $mailbody .= "$key : $val\n";
                        }
                        mail($mailto, $mailsubj, $mailbody, $mailhead);
                        header("Location: http://www.yourdomain.com/thankyou_page.html");
                        ?>

                        Copy this code, paste it in Notepad. Go to "Save as" , choose for "File type" "All files" and save it with the same name that you used till now, f.e. "feedback.php". Upload it on your site using Blue FTP. For the thankyou page, create and publish a normal BV page, save it as "thankyou_page" and publish it. You're done.
                        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

                        • Bluenose
                          First Sergeant

                          • Feb 2006
                          • 71

                          #27
                          Re: another forms question

                          your a star, thanks.
                          www.hobta.co.uk

                          www.floridabungalow.co.uk

                          www.e-itstudy.com

                          www.gpcsystems.co.uk

                          Comment

                          • slaughter
                            Private First Class

                            • Feb 2006
                            • 5

                            #28
                            Re: another forms question

                            I dont know why these forms are so hard as I have read through this forum many times. I'm one of those guys who doesn't like to ask directions so I have gone over my pages and php file many times. I have decided I am now LOST and I need to ask for help.

                            My page ...
                            This page is for a COD UO gaming group and we need a recruit form setup.



                            My form property has the Action set at recruit.php and encoding is left blank.
                            I created a recruit.php by the steps listed above. Check the bluevoda property of recruit.php and its set to php. I have saved both files and published them. The file recruit.php is listed on server side as well.

                            I get the following error ...

                            ***********
                            Internal Server Error
                            The server encountered an internal error or misconfiguration and was unable to complete your request.

                            Please contact the server administrator, webmaster@toxic-army.lhcgroup.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

                            More information about this error may be available in the server error log.

                            Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

                            ***********
                            What are my next steps?

                            Comment

                            • navaldesign
                              General & Forum Moderator

                              • Oct 2005
                              • 12080

                              #29
                              Re: another forms question

                              In my opinion, it's something in your "recruit.php" script thet causes it. Would you mind uploading the script 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!

                              Comment

                              • slaughter
                                Private First Class

                                • Feb 2006
                                • 5

                                #30
                                Re: another forms question

                                recruit.php that was created using BlueVoda as note above.

                                <!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>recruit</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"
                                <?PHP
                                $email = $HTTP_POST_VARS[email];
                                $mailto = "recruit@toxic-army.com";
                                $mailsubj = "Feedback form";
                                $mailhead = "From: $email\n";
                                reset ($HTTP_POST_VARS);
                                $mailbody = "Values submitted from web site form:\n";
                                while (list ($key, $val) = each ($HTTP_POST_VARS))
                                {
                                $mailbody .= "$key : $val\n";
                                }
                                mail($mailto, $mailsubj, $mailbody, $mailhead);
                                ?>>
                                <DIV id="container">
                                <DIV style="position:absolute;left:19px;top:20px;width: 150px;height:64px;z-index:0" align="left">
                                <FONT style="FONT-SIZE:10pt" color="#000000" face="Arial">Thanks for your feedback, your comments have been processed!</FONT>
                                </DIV>
                                </DIV>
                                </BODY>
                                </HTML>

                                Comment

                                Working...
                                X