|
Adding Web Form to Your Website |
Top Previous Next |
|
This is a topic for an entire book; have no doubt that I am covering only the very basics here.
Standalone Form
A standalone web form starts and ends with the same tags that any HTML page begins with. Below you may see the basic HTML:
<html> <head> <title>Your title</title> </head> <body> <form action="Submission action" method="POST"> HTML for the text, radio buttons, etc. </body> </html>
Replace Your title with the title you want to give to the page displaying the form. To learn what to replace Submission action with, read this section: Submission Action. To find out what you can put between the “FORM” tags, see Input Fields.
Adding a Form to an Existing Page
To add a form to an existing web page, you can use nearly identical HTML code to the one shown in the previous section. The only difference is that you only include the “FORM” opening and closing tag and what is between them.
Example:
<form action="Submission action" method="POST"> HTML for the text, radio buttons, etc.
Otherwise, the rules are the same.
|