What's
New
Doll
Makers
Room
Makers
Puzzle
Makers
Roiworld Stardoll Links
GirlSense - online dress up games for girls with fashion sense

Back to Free Shopping Cart

Form Submission


This script is transcribed from MyPaySystems PRO setup documentation (a pdf file), no online copy was easily available so I have mirrored this document here for easy reference

Table of contents
  1. INTRODUCTION
  2. BACKGROUND INFORMATION
    1. HTML Forms
    2. Form Submission
  3. PREREQUISITES
  4. SETUP
    1. Overview
    2. Line-by-Line Analysis
  5. COMMON APPLICATIONS
    1. Custom Shopping Cart
    2. In-House Database of Customers
    3. Advanced Shipping or Taxes
    4. Numerous Product Variations
    5. Any Application with Numerous Possible Product Prices
  6. TROUBLESHOOTING
  7. GLOSSARY
  8. APPENDICES
  9. APPENDIX A: Input variables list
  10. APPENDIX B: Output variables list
  11. APPENDIX C: HTML source


2.2. Form Submission

As mentioned above, there are two ways of sending information when submitting a form: the GET method, and the POST method.

The GET method sends the information by creating a query string and appending it to the end of the URL specified in the action property of the form. The query string always begins with a question mark (“?”), after which the name of the first input field of the form is listed. This is why the name of the input field is so important; the receiving web page (or script) must know what to expect. An example query string, and resulting URL is bellow.

Query String
“?name=Justin&order=721456321&size=m”
Resulting URL
http://www.mypaysystems.com/process.asp?name=Justin&order=721456321&size=m

For a form with multiple input fields, these fields are added to the query string in the same manner as that described above, except without the question mark. These additional entries are separated by an ampersand (“&”).

The POST method does not work as transparently. Whereas the GET method encodes information in the URL of the HTML request using a query string, the POST method encodes the form information in the body of the HTML request. Therefore, the information does not appear to the user as it does with the GET method.





About     Privacy Policy     Hosting by Web Hosting Canada

Except where otherwise noted, this site is licensed under a Creative Commons License



contact us: elouai@gmail.com
©2003-2008 eLouai.com, All rights reserved