Entry form - error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Rob (SA)
    Lieutenant Colonel

    • Nov 2006
    • 586

    Entry form - error

    Hi Folks,

    I have created a from that has it problems.

    For the love of me and after much reading please could the "good guys" help.
    1. On submissin of the page the filed contents are not being sent through to the email specified ?
    2. The emails recievd always come from Microsoft Internet Explorer - Is this correct ? Can it be changed ?
    Kind Regards
    Rob
    www.gnjgf.co.za
    www.oryan-projects.com
  • Andy128
    Major General

    • Dec 2005
    • 2317

    #2
    Re: Entry form - error

    Rob-
    Post a link to the form and also- cut and paste the php code you are using to process the page.

    Likely it is a simple missed portion of the script

    Andy
    PHP- is a blast!

    Comment

    • Rob (SA)
      Lieutenant Colonel

      • Nov 2006
      • 586

      #3
      Re: Entry form - error

      Hi Andy,

      Here is the link requested.



      I would like to have the page have a submit option as well if this is possible
      Kind Regards
      Rob
      www.gnjgf.co.za
      www.oryan-projects.com

      Comment

      • Rob (SA)
        Lieutenant Colonel

        • Nov 2006
        • 586

        #4
        Re: Entry form - error

        Hi Andy,

        I think this is the php script you are requesting

        <script language="php">
        $email = "email";
        $mailto = robhar@mweb.co.za;
        $mailsubj = "Feed back submission";
        $mailhead = "From:email";
        reset ($HTTP_POST_VARS);
        $mailbody = "Values submitted from web site form:\n";
        while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
        if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
        </script>
        Kind Regards
        Rob
        www.gnjgf.co.za
        www.oryan-projects.com

        Comment

        • Andy128
          Major General

          • Dec 2005
          • 2317

          #5
          Re: Entry form - error

          Rob-
          Lots of problems all over this page.

          1- The form action is set to - mailto:enties@gnjgf.co.za
          this form requires a php script and therefore you would need to place the php script in a page and call it someting like- process.php. Then change your action to process.php
          2- You have a form within a form. The date button is actually a form and is going to cause a conflict.
          3-Your field names are way too elaborate and long. Try making them like
          last_name, first_name, handicap, etc...

          4- The php script has errors. The $email = "email"; should be $email = $HTTP_Post_VARS['email'];

          5- There is no submit button at all and therefore- the form will never get processed.
          6- The print this form button should not be on the form itself.

          It is late and I have worked all night so that is what I can see for now. To fix this I would recommend the following;
          1- Remove the Date / time button
          2- Remove the Print this form button from the form and place near the top right or left of the page.
          3-Have a look at this tutorial - http://netisopen.com/computer/TF001/T001.html
          and give it another try by following the instructions very carefully.

          If you have problems post back.

          Cheers-
          Andy
          PHP- is a blast!

          Comment

          • Rob (SA)
            Lieutenant Colonel

            • Nov 2006
            • 586

            #6
            Re: Entry form - error

            Hi Andy,

            Thanks for the advice.

            I have made the changes as requested but still do not recieve the mail when testing by sending my own completed page.

            Thanks for the time youu give up to help it is appreciated

            Simple is best and looking forward I am sure it is more than likely something quite simple to resolve
            Kind Regards
            Rob
            www.gnjgf.co.za
            www.oryan-projects.com

            Comment

            • Andy128
              Major General

              • Dec 2005
              • 2317

              #7
              Re: Entry form - error

              Rob-
              In order for the form to access the php script to have it process the form data- the action of the script has to be set to what ever page you have the php script on. Ex. action.php

              Yous is still set as mentioned in #1 above. mailto:.............


              Andy
              PHP- is a blast!

              Comment

              • Rob (SA)
                Lieutenant Colonel

                • Nov 2006
                • 586

                #8
                Re: Entry form - error

                Hi Andy,

                I have made the change



                Still no luck
                Kind Regards
                Rob
                www.gnjgf.co.za
                www.oryan-projects.com

                Comment

                • Andy128
                  Major General

                  • Dec 2005
                  • 2317

                  #9
                  Re: Entry form - error

                  The action on the form is set to entryform.php and it should be action.php

                  Change that and see if it works.

                  Andy
                  PHP- is a blast!

                  Comment

                  • Rob (SA)
                    Lieutenant Colonel

                    • Nov 2006
                    • 586

                    #10
                    Re: Entry form - error

                    Hi folks,

                    I have endevoured to make the respective changes below however it seems I am still unsuccesful.

                    The page submission works if I test it from my computer but when sending from another address or computer it doesnt seem to work.

                    Please could someone offer me thier assistance?
                    Kind Regards
                    Rob
                    www.gnjgf.co.za
                    www.oryan-projects.com

                    Comment

                    • Andy128
                      Major General

                      • Dec 2005
                      • 2317

                      #11
                      Re: Entry form - error

                      Rob,

                      Since it has been 4 months since the last entry.............if it is the same form we were discussing before, one of the problems is that the form action is wrong. You have it set as...
                      action="mailto:robhar@mweb.co.za"

                      It should be action.php

                      Andy
                      PHP- is a blast!

                      Comment

                      • Rob (SA)
                        Lieutenant Colonel

                        • Nov 2006
                        • 586

                        #12
                        Re: Entry form - error

                        Hi Andy,

                        I tis the same page and when testing it works perfectly from my computer.

                        I have trewid changing the action as described to action.php however it returns the error of this page is "unable to display"

                        I tried to get clever with it since you sent me all the files that would offer a reply on submission, however it seems I have to do a little more than edit here and there those files I have.

                        Thanks again ofr your help to the resolution of this persistant problem.
                        Kind Regards
                        Rob
                        www.gnjgf.co.za
                        www.oryan-projects.com

                        Comment

                        • Rob (SA)
                          Lieutenant Colonel

                          • Nov 2006
                          • 586

                          #13
                          Re: Entry form - error

                          Hi Andy,

                          I have changed the page to show actio.php and am having some succes in that the action page does show.

                          I have changed the $email = "email" to reflect that indicated below.

                          The changes have been positive however the result is not final - I do not receive the email as sent.

                          Your advice here would be welcome
                          Kind Regards
                          Rob
                          www.gnjgf.co.za
                          www.oryan-projects.com

                          Comment

                          • navaldesign
                            General & Forum Moderator

                            • Oct 2005
                            • 12080

                            #14
                            Re: Entry form - error

                            Rob:

                            Please download the new BV10. The forms can now be simply processed by a built in processor. Follow these steps plase:

                            Open your form page in the new BV10.
                            Double click the form.
                            Check the "Use built in form processor" checkbox.
                            Type the email address where you want the mail to be sent.
                            Type the "thankyou" page URL (it can be a simple html page, no php code is required).
                            Go in page properties, and set the form page extension to be php when published.
                            Save, Publish and test.
                            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

                            • Andy128
                              Major General

                              • Dec 2005
                              • 2317

                              #15
                              Re: Entry form - error

                              Rob-
                              That method (mailto: ) does not accurately work. The action.php is supposed to be used in conjunction with some php code that you put in the thank you page -that page is named action.php

                              To make things much simpler- upgrade to BV10 and follow Navaldesign's advice above.

                              Andy
                              PHP- is a blast!

                              Comment

                              Working...
                              X