| ||||||||||||||||||
|
Back to Free Shopping CartForm SubmissionThis 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
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. |
|
contact us: elouai@gmail.com ©2003-2008 eLouai.com, All rights reserved |