![]() |
| ||||||||||
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Tutorials Contribute only full How-To\'s and Tutorials here. Submit Tutorials, Guides and Hints. ALL TUTORIALS ARE MODERATED AND YOUR TUTORIAL WILL *NOT* BE *VISIBLE* UNTIL IT IS ACCEPTED. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| When a form is submitted, all fields on the form are being sent. The <form> tag tells the browser where the form starts and ends. You can add all kinds of HTML tags between the <form> and </form> tags. This means that a form can easily include a table or an image along with the form fields mentioned on the next page. Look at this example: <html> <head> <title>My Page</title> </head> <body> <!-- Here goes HTML --> <form> <!-- Here goes form fields and HTML --> </form> <!-- Here goes HTML --> </body> </html> Note: Unlike a table, forms are not visible on the page. The form in our example is useless for two obvious reasons: * First it contains no form fields. It is simply comparable to a blank sheet of paper. * Second, it does not contain a recipient for the form once it is submitted. To let the browser know where to send the content we add these properties to the <form> tag: * action=address * method=post or method=get The address is the url of the cgi script the content should be sent to. The post and get methods are simply two different methods for submitting data to the script. If you are using a pre-programmed script (which we assume here) it is not important to understand the difference between get and post. In the description of the script you are using it will be made clear whether the scripts should be addressed using one method or the other. Below is an example of a typical form tag, with both action and method specified. <html> <head> <title>My Page</title> </head> <body> <!-- Here goes HTML --> <form method="post" action="http://awebsite.com/something"> <!-- Here goes form fields and HTML --> </form> <!-- Here goes HTML --> </body> </html> |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is "Secrets of Blogging" seobloghost.com a scam? | Bill H | SEO - Search Engine Optimization | 2 | 03-04-2010 06:01 AM |
| Marketing Essay Help!!? | orangebag | Business and Finance Forum | 1 | 02-13-2010 12:33 PM |
| free training companies for telecoms and electronics? | Bitt | Business and Finance Forum | 0 | 01-11-2010 06:59 PM |
| Please can someone help with HTML websites? Creating external pages? | JAFOOLY | HTML/CSS/DHTML | 0 | 01-10-2010 12:57 AM |
| youtube says that i need javascript to watch videos. What is it and how do i get it? | rock284 | Javascript | 0 | 01-02-2010 08:38 PM |