HTML Hyper Text Markup Language: HTML Online FormsAdding Email FormsForms let your visitor fill out information, hit submit (or GO) and the information can be directed to the server for several different actions. An example may be to have the form filled out, and when submitted, will be emailed to you. In order for the form submission to be legible via email, they have to be processed. This can be done with CGI scripting (very advanced).E-Mail Form Question OptionsThere are 5 choices of form question layouts.
Text fields are one line of input. Normally you set a limit as to how many characters can be typed for the given field (maxlength). You can also set the size of the field (size).
Radio Buttons allow for multiple choices yet the user can only select one. Multiple selections are not allowed with radio buttons. Notice that the NAME is the same for all buttons in a set, but the VALUE is different. Also notice that in the first one, the word "checked" is in the code which defaults "Yes" as being chosen when the page loads. YesNo Maybe Yes No Maybe
Check Boxes allow for multiple choices AND multiple selections. The user can select one or more. Notice that the NAME is now different for all checkboxes, but the VALUE is the same. Also notice that in the second two, the word "checked" is in the code which puts a check in the box for "Two" and "Three" when the page loads. OneTwo Three One Two Three
Selector Bars are
perfect for questions that have many responses and you don\'t want to
take up a lot of room on a page. They can be set for single or
multiple selections allowed (either put in the word multiple or
don\'t). If you choose multiple, you have to hold down the ctrl-key
when making multiple choices. Notice the size can be however many
cells you want.
Text fields are multiple lines of input. Normally this is where people respond with a lengthy answer of a paragraph or more. Be sure to put in the wrap=virtual so that when the typing hits the end of the line it auto wraps to the next line. You can set the columns and rows to whatever you like. And you can put in a default response that is preloaded in the box when the page loads. Nice Site!Nice Site!
The Submit Button is what sends in the form once the user finishes filling it out. The Reset button erases andthing the user has typed so he can start again. To alter the text that appears on the buttons, change the value atribute to the text you wish to have displayed.
If you had several forms on different pages and you wanted to have a field in the e-mail you received that told you which page it came from, you can put in a hidden field. Only you will ever see this, the user will not. |