| |||||||||
| |||||||||
| Not A Member Yet? Register today and become part of the community. |
| |||||||
| 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 |
| help in filling b ed., application form? | miaw | General - Education & Reference | 0 | 06-19-2008 09:19 AM |
| Do Meta tags work anymore / Give me hints | flickall | SEO - Search Engine Optimization | 5 | 01-12-2008 06:40 PM |
| How do i add tags in yahoo search engine? | Net Z | Yahoo | 1 | 05-27-2007 02:06 PM |
| Payment form for website | axell | Business and Finance Forum | 1 | 05-24-2007 08:37 PM |
| Form - Mail Clone | Ondes | Free Web Hosting Support | 4 | 02-10-2007 12:19 PM |