Send FORM to 2nd HTML page |
home page std.css |
There are times when you have many items on your site that are similar, and all require the same options. An example would be selling Tee-shirts where each shirt has several price and color options. If you create a catalog page with 20 shirts on it, it would be "messy" to include the size and color options for every shirt on that page.
What we can do is to have the user select a shirt to order, then take him to an order page where he is asked the size and color questions. This requires the ability to send data from one HTML page to another on your site.
If you look at the code of this page (<view source>) you will see the FORMs whose information is passed to another page. Note the "action" and "method" of the FORM statement. The action is the URL of the page being called, and the method is "get". This sends an encoded query string to the 2nd page that we can decode. We can make up any names we want, and evaluate them in the page being called. This calling of another page with arguments is the easy part - the complicated part is reading and evaluating the arguments in the second page.
Contact me concerning this article at
paypalhelper@aol.com.
Mention "FORM to 2nd page" in your note.
Individual help starting at $25.00 for simple JS solutions.