22 Replies Latest reply on Aug 29, 2013 5:15 AM by Ness_quick

    Help with form function

    Ness_quick Level 1

      Hi All,

      I'm having problems gathering information from one form ('product') and placing it into another ('accepted') so that i can submit the information into an email using php. I need to retrieve the options chosen from the 'product' form and insert them into hidden fields within the 'accepted' form using java script. BUT im having problems getting it to work properly, can anyone please help me?

       

      www.milesmemorials.com/product-GH54.html

       

      <script type="text/javascript">

      var colour2 = Number(document.forms.product.colour.value);

      $("#colour2").val(colour2.toFixed(2));

      var engraving2 = Number(document.forms.product.engraving.value);

      $("#engraving2").val(engraving2.toFixed(2));

      var font2 = document.forms.product.font.value;

      $("#font2").val(font2);

      var textarea2 = document.forms.product.textarea.value;

      $("#textarea2").val(textarea2);

      var engraved_designs2 = document.forms.product.engraved_designs.value;

      $("#engraved_designs2").val(engraved_designs2);

      var sandblasted_designs2 = document.forms.product.sandblasted_designs.value;

      $("#sandblasted_designs2").val(sandblasted_designs2);

      var grand_total2 = Number(document.forms.product.grand_total.value);

      $("#grand_total2").val(grand_total2.toFixed(2));

      var cemetery_name2 = document.forms.product.cemetery_name.value;

      $("#cemetery_name2").val(cemetery_name2);

      var cemetery_address2 = document.forms.product.cemetery_address.value;

      $("#cemetery_address2").val(cemetery_address2);

      var grave_number2 = document.forms.product.grave_number.value;

      $("#grave_number2").val(grave_number2);

      }

      </script>

        • 1. Re: Help with form function
          Level 4

          There's really no reason to have two forms on your page and pass values from form 1 to hidden fields in form 2. Simply consolidate form into one form and if button 1 is clicked then process button 1 information else if button 2 is clicked process alternate information. You might also want to reconsider the form values that you're passing. When you receive a value of 75 for a selected item how are you to know what item the person selected when almost all of the values are 75? Consider unique form values for your product options like option1, option2, etc. to differentiate what item was selected instead of 75, 75, 75, etc. which does not specify which item was selected during processing.

           

          best,

          Shocker

          • 2. Re: Help with form function
            Ness_quick Level 1

            Thank you for your post. I didn't think i could have two buttons to one form. Also i need a 'proof' button which once clicked will show another part of the form with another submit button.

            • 3. Re: Help with form function
              osgood_ Level 8

              the_shocker wrote:

               

              There's really no reason to have two forms on your page and pass values from form 1 to hidden fields in form 2. Simply consolidate form into one form and if button 1 is clicked then process button 1 information else if button 2 is clicked process alternate information.

               

              best,

              Shocker

               

              The problem with that in this particular senario is some of the information in form 2 is not contained in form 1 i.e., the name, email etc. I assume that this is because the checkout gateway collects this information. If the checkout is not used then this info cannot be collected, I think or not in the way the OP would like.

              • 4. Re: Help with form function
                Level 4

                Yep I seen your proof button. You seem to have toggle figured out with onlcick event so that shouldn't be a problem should it?

                 

                On another note: your design needs a little work. Think about making your form more compact and try to place it above the fold. No one should have to scroll in order to see your call to action. Put form on the top of the page at the right side with info about your services on the left side so as soon as someone visits your page they see where they can order without requiring the user to scroll.

                 

                best,

                Shocker

                • 5. Re: Help with form function
                  Level 4

                  osgood_ wrote:

                   

                  the_shocker wrote:

                   

                  There's really no reason to have two forms on your page and pass values from form 1 to hidden fields in form 2. Simply consolidate form into one form and if button 1 is clicked then process button 1 information else if button 2 is clicked process alternate information.

                   

                  best,

                  Shocker

                   

                  The problem with that in this particular senario is some of the information in form 2 is not contained in form 1 i.e., the name, email etc. I assume that this is because the checkout gateway collects this information. If the checkout is not used then this info cannot be collected, I think or not in the way the OP would like.

                   

                  You may or may not be aware that scripting can process information depending on which button is clicked so that if button 1 is clicked then button 1 required fields are processed else if button 2 is clicked then button 2 required fields are processed. This was mentioned in first reply and pasted in your quote in case you missed it.

                   

                  best,

                  Shocker

                  • 6. Re: Help with form function
                    osgood_ Level 8

                    the_shocker wrote:

                     

                    osgood_ wrote:

                     

                    the_shocker wrote:

                     

                    There's really no reason to have two forms on your page and pass values from form 1 to hidden fields in form 2. Simply consolidate form into one form and if button 1 is clicked then process button 1 information else if button 2 is clicked process alternate information.

                     

                    best,

                    Shocker

                     

                    The problem with that in this particular senario is some of the information in form 2 is not contained in form 1 i.e., the name, email etc. I assume that this is because the checkout gateway collects this information. If the checkout is not used then this info cannot be collected, I think or not in the way the OP would like.

                     

                    You may or may not be aware that scripting can process information depending on which button is clicked so that if button 1 is clicked then button 1 required fields are processed else if button 2 is clicked then button 2 required fields are processed. This was mentioned in first reply and pasted in your quote in case you missed it.

                     

                    best,

                    Shocker

                     

                    The information needed to be collected is not generic to both forms, it's different.

                     

                    If it were the same, two buttons would work as you say. The info could be directed to dedicated urls to be processed.

                    • 7. Re: Help with form function
                      Level 4

                      The information needed to be collected is not generic to both forms, it's different.

                       

                      If it were the same, two buttons would work as you say. The info could be directed to dedicated urls to be processed.

                       

                      I undertand you may be inexperienced with form processing so I will try to clarify. Data from these forms does not need to be directed to dedicated URLs to be processed and data requirements from the form do not need to be consistent for both submit buttons. It can be dedicated to one processing script that processes information based on the condition of which submit button was clicked, and process the fields that are required for that button in the processing script depending on the condition of which submit button was clicked. I hope you understand now. If you have a cumbersome solution that uses two forms then please provide it. Regardless, the current discussion you have initiated regarding form processing should be a closed matter now.

                       

                      Ness_quick, what server side scripting language are you using to process your form? Your form "action" is null and your page is html. I'd like to provide a basic php processing example but I don't want to waste time if you're using a different scripting language.

                       

                      My personal opinion is that you will not see any conversions from your current development model. IMO everyone will want to see a proof before purchasing. Not a collection of data for review and approval, but an actual image that displays the items that they are purchasing. Ideally you'd have a dynamic image proof that displays selected options as you enter them into the form. A build-to-order preview realtime image preview is what you need, not an email of text sent to the potential client.

                       

                      best,

                      Shocker

                      • 8. Re: Help with form function
                        Ness_quick Level 1

                        PHP and this is what i've just put together for this page -

                         

                        <?php

                        if(!isset($_POST['submit']))

                        {

                                  //This page should not be accessed directly. Need to submit the form.

                                  echo "error; you need to submit the form!";

                        }

                        $name = $_POST['name'];

                        $tel = $_POST['tel'];

                        $email = $_POST['email'];

                        $colour2 = $_POST['colour2'];

                        $engraving2 = $_POST['engraving2'];

                        $font2 = $_POST['font2'];

                        $textarea2 = $_POST['textarea2'];

                        $engraved_designs2 = $_POST['engraved_designs2'];

                        $sandblasted_designs2 = $_POST['sandblasted_designs2'];

                        $grand_total2 = $_POST['grand_total2'];

                        $cemetery_name2 = $_POST['cemetery_name2'];

                        $cemetery_address2 = $_POST['cemetery_address2'];

                        $grave_number2 = $_POST['grave_number2'];

                         

                         

                         

                         

                        //Validate first

                        if(empty($name)||empty($tel)||empty($email)||empty($colour2)||empty($engraving2)||empty($f ont2)||empty($textarea2)||empty($grand_total2)||empty($cemetery_name2)||empty($cemetery_ad dress2))

                        {

                            echo "All fields are mandatory!";

                            exit;

                        }

                        if(IsInjected($email))

                        {

                            echo "Bad email value!";

                            exit;

                        }

                         

                         

                        $email_from = 'milesmemorials.com';//<== update the email address

                        $email_subject = "Proof request";

                        $email_body = "Request from: $name.\n";

                        $email_body .= "Email: $email.\n";

                        $email_body .= "Tel: $tel.\n";

                        $email_body .= "Memorial colour: $colour2.\n";

                        $email_body .= "Engraved lettering (per letter): $engraving2.\n";

                        $email_body .= "Font style choice: $font2.\n";

                        $email_body .= "Memorial wording: $textarea2.\n";

                        $email_body .= "State of the art engraved design: $engraved_designs2.\n";

                        $email_body .= "Sandblasted design: $sandblasted_designs2.\n";

                        $email_body .= "Total: $grand_total2.\n";

                        $email_body .= "Name of cemetery: $cemetery_name2.\n";

                        $email_body .= "Address of cemetery: $cemetery_address2.\n";

                        $email_body .= "Grave number: $grave_number2.\n";

                         

                         

                         

                         

                           

                        $to = "Ness_Rob@yahoo.com";//<== update the email address

                        $headers = 'From: '.$email."\r\n".

                        $headers = 'Reply-To:'.$email."\r\n";

                        //Send the email!

                        mail($to,$email_subject,$email_body,$headers);

                        //done.  redirect to payment page.

                        header('Location: thank_you.html');

                         

                         

                        // Function to validate against any email injection attempts

                        function IsInjected($str)

                        {

                          $injections = array('(\n+)',

                                      '(\r+)',

                                      '(\t+)',

                                      '(%0A+)',

                                      '(%0D+)',

                                      '(%08+)',

                                      '(%09+)'

                                      );

                          $inject = join('|', $injections);

                          $inject = "/$inject/i";

                          if(preg_match($inject,$str))

                            {

                            return true;

                          }

                          else

                            {

                            return false;

                          }

                        }

                          

                        ?>

                        • 9. Re: Help with form function
                          osgood_ Level 8

                          the_shocker wrote:

                           

                          The information needed to be collected is not generic to both forms, it's different.

                           

                          If it were the same, two buttons would work as you say. The info could be directed to dedicated urls to be processed.

                           

                          I undertand you may be inexperienced with form processing so I will try to clarify. Info from form does not need to be directed to dedicated URLs to be processed and data requirements from the form do not need to be consistent for both submit buttons. It can be dedicated to one processing script that processes information based on the condition of which submit button was clicked, and process the fields that are required for that button in the processing script depending on the condition of which submit button was clicked. I hope you understand now. If you have a cumbersome solution that uses two forms then please provide it. Regardless, the current discussion you have initiated regarding form processing should be a closed matter now.

                           

                           

                          I actually agree with you about the cumbersome solution, its not one that I'm totally happy with and have stated this. Any advice on streamlining the process and providing a working solution would be welcome I'm sure. Let's hope you can be more helpful than you usually are and not leave the job half done. It will be a first.

                           

                          php is the server language being used.

                          • 10. Re: Help with form function
                            Level 4

                            Both of the submit buttons on your page are named submit, so you have a conflict regarding your script right there. Name one of your submit buttons something else unique, consolidate your two forms into one, and process your form action like this:

                             

                            <?php

                            if (isset($_POST['button_one'])) {

                            // all the button one stuff here

                            echo $_POST['one'];

                            } elseif (isset($_POST['button_two'])) {

                            // all the button two stuff here

                            echo $_POST['two'];

                            }

                            ?>

                             

                            <form method="post" action="">

                            <input name="one" type="text"><br>

                            <input name="two" type="text"><br>

                            <input type="submit" name="button_one" value="button one"> <input type="submit" name="button_two" value="button two">

                            </form>

                             

                            I'm sure you can figure it out yourself now, right?

                             

                            best,

                            Shocker

                            1 person found this helpful
                            • 11. Re: Help with form function
                              osgood_ Level 8

                              Ness_quick wrote:

                               

                              PHP and this is what i've just put together for this page -

                               

                              <?php

                              if(!isset($_POST['submit']))

                              {

                                        //This page should not be accessed directly. Need to submit the form.

                                        echo "error; you need to submit the form!";

                              }

                              $name = $_POST['name'];

                              $tel = $_POST['tel'];

                              $email = $_POST['email'];

                              $colour2 = $_POST['colour2'];

                              $engraving2 = $_POST['engraving2'];

                              $font2 = $_POST['font2'];

                              $textarea2 = $_POST['textarea2'];

                              $engraved_designs2 = $_POST['engraved_designs2'];

                              $sandblasted_designs2 = $_POST['sandblasted_designs2'];

                              $grand_total2 = $_POST['grand_total2'];

                              $cemetery_name2 = $_POST['cemetery_name2'];

                              $cemetery_address2 = $_POST['cemetery_address2'];

                              $grave_number2 = $_POST['grave_number2'];

                               

                               

                               

                               

                              //Validate first

                              if(empty($name)||empty($tel)||empty($email)||empty($colour2)||empty($e ngraving2)||empty($font2)||empty($textarea2)||empty($grand_total2)||em pty($cemetery_name2)||empty($cemetery_address2))

                              {

                                  echo "All fields are mandatory!";

                                  exit;

                              }

                              if(IsInjected($email))

                              {

                                  echo "Bad email value!";

                                  exit;

                              }

                               

                               

                              $email_from = 'milesmemorials.com';//<== update the email address

                              $email_subject = "Proof request";

                              $email_body = "Request from: $name.\n";

                              $email_body .= "Email: $email.\n";

                              $email_body .= "Tel: $tel.\n";

                              $email_body .= "Memorial colour: $colour2.\n";

                              $email_body .= "Engraved lettering (per letter): $engraving2.\n";

                              $email_body .= "Font style choice: $font2.\n";

                              $email_body .= "Memorial wording: $textarea2.\n";

                              $email_body .= "State of the art engraved design: $engraved_designs2.\n";

                              $email_body .= "Sandblasted design: $sandblasted_designs2.\n";

                              $email_body .= "Total: $grand_total2.\n";

                              $email_body .= "Name of cemetery: $cemetery_name2.\n";

                              $email_body .= "Address of cemetery: $cemetery_address2.\n";

                              $email_body .= "Grave number: $grave_number2.\n";

                               

                               

                               

                               

                               

                              $to = "Ness_Rob@yahoo.com";//<== update the email address

                              $headers = 'From: '.$email."\r\n".

                              $headers = 'Reply-To:'.$email."\r\n";

                              //Send the email!

                              mail($to,$email_subject,$email_body,$headers);

                              //done.  redirect to payment page.

                              header('Location: thank_you.html');

                               

                               

                              // Function to validate against any email injection attempts

                              function IsInjected($str)

                              {

                                $injections = array('(\n+)',

                                            '(\r+)',

                                            '(\t+)',

                                            '(%0A+)',

                                            '(%0D+)',

                                            '(%08+)',

                                            '(%09+)'

                                            );

                                $inject = join('|', $injections);

                                $inject = "/$inject/i";

                                if(preg_match($inject,$str))

                                  {

                                  return true;

                                }

                                else

                                  {

                                  return false;

                                }

                              }

                               

                              ?>

                              I'd wait to see what 'shocker' is coming up with for this as he has a valid point, not only that as I also pointed out unless you can get form 2 to update instantaneously when form 1 information changes (which I expect you can) then the infromation sent in form 2 is likley to contian incorrect information.

                               

                              The way the page/forms are set up at the moment aren't quite right. if you're going to persist with this solution then a step back needs to be taken and a little bit of adjustment is needed. That adjustment being the instantaneous update of the form fields.

                              • 12. Re: Help with form function
                                osgood_ Level 8

                                the_shocker wrote:

                                 

                                Both of the submit buttons on your page are named submit, so you have a conflict regarding your script right there. Name one of your submit buttons something else unique, consolidate your two forms into one, and process your form action like this:

                                 

                                <?php

                                if (isset($_POST['button_one'])) {

                                // all the button one stuff here

                                echo $_POST['one'];

                                } elseif (isset($_POST['button_two'])) {

                                // all the button two stuff here

                                echo $_POST['two'];

                                }

                                ?>

                                 

                                <form method="post" action="">

                                <input name="one" type="text"><br>

                                <input name="two" type="text"><br>

                                <input type="submit" name="button_one" value="button one"> <input type="submit" name="button_two" value="button two">

                                </form>

                                 

                                I'm sure you can figure it out yourself now, right?

                                 

                                best,

                                Shocker

                                 

                                Would this work in this case is the question.

                                 

                                As I see it you are suggesting that all the 'add to basket' (button_one) information is processed seperately of all the email information 'submit' (button two').

                                 

                                This would work IF the basket info isnt being sent to a dedicated script outside of the website to be processed I guess.

                                 

                                If its not then I think it will work.

                                • 13. Re: Help with form function
                                  Level 4
                                  unless you can get form 2 to update instantaneously when form 1 information changes (which I expect you can) then the infromation sent in form 2 is likley to contian incorrect information

                                   

                                   

                                  (shakes head) I think that's what OP was requesting a solution for in the original post when they stated the following:

                                   

                                   

                                  I need to retrieve the options chosen from the 'product' form and insert them into hidden fields within the 'accepted' form using java script.

                                   

                                   

                                  That is why I suggested a better programming approach of using one form and processing according to which submit button was clicked. In case you missed it (sense you seemed to have missed every other solution I have fully provided to others judging from your "leave the job half done" comment), here's an example of the solution I came up with based on the earlier discussion.

                                   

                                  <?php

                                  if (isset($_POST['button_one'])) {

                                  // all the button one stuff here

                                  echo $_POST['one'];

                                  } elseif (isset($_POST['button_two'])) {

                                  // all the button two stuff here

                                  echo $_POST['two'];

                                  }

                                  ?>

                                   

                                  <form method="post" action="">

                                  <input name="one" type="text"><br>

                                  <input name="two" type="text"><br>

                                  <input type="submit" name="button_one" value="button one"> <input type="submit" name="button_two" value="button two">

                                  </form>

                                   

                                  best,

                                  Shocker

                                  • 14. Re: Help with form function
                                    Ness_quick Level 1

                                    Ok i'll give the above a go. Fingers crossed i dont mess it all up!

                                    • 15. Re: Help with form function
                                      osgood_ Level 8

                                      the_shocker wrote:

                                       

                                      unless you can get form 2 to update instantaneously when form 1 information changes (which I expect you can) then the infromation sent in form 2 is likley to contian incorrect information

                                       

                                       

                                      I think that's what OP was requesting a solution for in the original post when they stated the following:

                                       

                                       

                                      I need to retrieve the options chosen from the 'product' form and insert them into hidden fields within the 'accepted' form using java script.

                                       

                                       

                                      That is why I suggested a better programming approach of using one form and processing according to which submit button was clicked. In case you missed it, here's an example of the solution I came up with based on the earlier discussion.

                                       

                                      <?php

                                      if (isset($_POST['button_one'])) {

                                      // all the button one stuff here

                                      echo $_POST['one'];

                                      } elseif (isset($_POST['button_two'])) {

                                      // all the button two stuff here

                                      echo $_POST['two'];

                                      }

                                      ?>

                                       

                                      <form method="post" action="">

                                      <input name="one" type="text"><br>

                                      <input name="two" type="text"><br>

                                      <input type="submit" name="button_one" value="button one"> <input type="submit" name="button_two" value="button two">

                                      </form>

                                       

                                      best,

                                      Shocker

                                      Yes, no problem, I had not thought far enough ahead until I came across the issue of the instant update to keep both the forms information the same without the necessity to refresh the proof button. You're way will be a better approach so long as the basket info and the email proof info can be combined into one php script.

                                       

                                      I don't know at this stage how the basket info is being processed. It may need to go to an outside source, like Paypal or similar where the script can't be altered.

                                      • 16. Re: Help with form function
                                        Level 4
                                        I don't know at this stage how the basket info is being processed. It may need to go to an outside source, like Paypal or similar where the script a can't be altered.

                                         

                                         

                                        Dude, your argument is still invalid. If the basket were going to PayPal it would make the most sense to use a PayPal method that allowed you to have control over how the data was processed *before it was sent to PayPal, like PayPal IPN or similar.

                                         

                                        Why are you an mvp forum user if you don't know basic form processing? Like you said to me earlier: Let's hope you can be more helpful than you usually are. It will be a first.

                                         

                                        best,

                                        Shocker

                                        • 17. Re: Help with form function
                                          Ness_quick Level 1

                                          I am using sagepay and with the use of 123 connect that supplies the cart and are writing the script for it to work with this site.

                                          • 18. Re: Help with form function
                                            osgood_ Level 8

                                            the_shocker wrote:

                                             

                                            I don't know at this stage how the basket info is being processed. It may need to go to an outside source, like Paypal or similar where the script a can't be altered.

                                             

                                             

                                            Dude, your argument is still invalid. If the basket were going to PayPal it would make the most sense to use a PayPal method that allowed you to have control over how the data was processed *before it was sent to PayPal, like PayPal IPN or similar.

                                             

                                            Pay Pal, like many payment gateways only allow for certain form attributes to be sent, it seems you dont' know that basic information. Those attributes don't include many/all of the bespoke form attributes that are used in the form that is being discussed....so if the forms action was to be set to Paypal it isn't going to work as you suggest.

                                             

                                            You have no control of how the information is sent to Paypal outside the form attributes allowed. You do as you say have control of the information after it has been sent, via IPN. You can then do what you like with it.

                                             

                                             

                                            the_shocker wrote:

                                             

                                            I don't know at this stage how the basket info is being processed. It may need to go to an outside source, like Paypal or similar where the script a can't be altered.

                                             

                                            Why are you an mvp forum user if you don't know basic form processing? Like you said to me earlier: Let's hope you can be more helpful than you usually are. It will be a first.

                                             

                                             

                                            Why are you a complete dickkhead is more the question?

                                            • 19. Re: Help with form function
                                              osgood_ Level 8

                                              Ness_quick wrote:

                                               

                                              I am using sagepay and with the use of 123 connect that supplies the cart and are writing the script for it to work with this site.

                                               

                                              sagepay isnt a payment gateway that I have used before.

                                               

                                              If someone else is writing/controlling the basket script then it's unlikely, unless you have discussed it with them, that the email proof part of the form is an inclusion, is it?

                                               

                                              Personally I'd keep the two seperate or at least make sure they know the requirments of the form if you are going to combine both the basket and email proofing information.

                                              • 20. Re: Help with form function
                                                Ness_quick Level 1

                                                Ok so the cart people (123 connect) who are writing the script for me have nothing to do with the proof part of the page. I just need to send all the selected details in an email to milesmemorials back office, without any involvement of cart or sagepay. As you stated earlier -

                                                 

                                                The problem with that in this particular senario is some of the information in form 2 is not contained in form 1 i.e., the name, email etc. I assume that this is because the checkout gateway collects this information. If the checkout is not used then this info cannot be collected

                                                 

                                                That is why i did it this way round, instead of having the one form. This is what the cart suppliers have emailed me with regards to how the website, cart and sagepage all integrate.

                                                 

                                                1: overview

                                                to create an on-site order system to link into the shopping cart, the order system will store all the details of the order from each selected page


                                                2: product page

                                                we will provide you with the code to add to the page with full details of where on the page to put it, there will be a config part for you to amend so you can get the script to work with the specific page elements.  For example if there are letters on the page then you make the letter script active, if there is a choice of stone type you simply make the stone type active.


                                                3: cart page

                                                this will keep a record of what the customer adds to the cart, when they are ready to checkout it will create a file to send to the shopping cart for payment


                                                4: secure shopping cart

                                                this is on a secure server and is PCI compliant, it adds on to the system above. This will take the order and link into your choice of payment provider, when complete it will email you and the customer with the order details.  It will also keep a record of the order for eight weeks

                                                • 21. Re: Help with form function
                                                  osgood_ Level 8

                                                  Ness_quick wrote:

                                                   

                                                  Ok so the cart people (123 connect) who are writing the script for me have nothing to do with the proof part of the page. I just need to send all the selected details in an email to milesmemorials back office, without any involvement of cart or sagepay. As you stated earlier -

                                                   

                                                  The problem with that in this particular senario is some of the information in form 2 is not contained in form 1 i.e., the name, email etc. I assume that this is because the checkout gateway collects this information. If the checkout is not used then this info cannot be collected

                                                   

                                                  That is why i did it this way round, instead of having the one form. This is what the cart suppliers have emailed me with regards to how the website, cart and sagepage all integrate.

                                                   

                                                  1: overview

                                                  to create an on-site order system to link into the shopping cart, the order system will store all the details of the order from each selected page


                                                  2: product page

                                                  we will provide you with the code to add to the page with full details of where on the page to put it, there will be a config part for you to amend so you can get the script to work with the specific page elements.  For example if there are letters on the page then you make the letter script active, if there is a choice of stone type you simply make the stone type active.


                                                  3: cart page

                                                  this will keep a record of what the customer adds to the cart, when they are ready to checkout it will create a file to send to the shopping cart for payment


                                                  4: secure shopping cart

                                                  this is on a secure server and is PCI compliant, it adds on to the system above. This will take the order and link into your choice of payment provider, when complete it will email you and the customer with the order details.  It will also keep a record of the order for eight weeks

                                                   

                                                  That's why In this particular case, in my opinion, it's best to keep the proofing element and the cart element seperate as you don't have much control over what the cart script does being as though it's an off-the-shelf' solution as many of these payment gateway solutions are and require specific form attributes. It was pretty obvious to some from the outset that it did not require the name, email information etc as that would be added at the gateway stage. like 99% of payment gateways.

                                                   

                                                  Given that you're now so close to a solution which works independently it's worth investigating if it is possible with javascript of jQuery to update the two forms in tandem as the fields change.

                                                  1 person found this helpful
                                                  • 22. Re: Help with form function
                                                    Ness_quick Level 1

                                                    Yes thats what i was thinking. I will start searching and post a new thread to see if anyone knows of anything like that. Thankyou!