Form Elements

Inside the form tags, there are several form elements that can be used. Which element you use is determined by the kind of data you choose to collect.

Form Element/HTML Element Name Description
Text Field The most common form element. Permits entry of one line of information.
<input name="MyTextField" type="text">
Text Area Very similar to a text field. The difference is that a text area permits entry of multiple lines of text.
<textarea name="MyTextArea"></textarea>

FrontPage
DreamWeaver
GoLive

Check Box Permits a user to select several items from a list of options. Notice you may check any or all of the boxes on the left.
<input name="MyCheckBox" type="checkbox" value="FrontPage">
FrontPage
DreamWeaver
GoLive
Radio Button Permits a user to select one item from a list. You will only be able to check one of the items from the list on the left.
<input name="MyRadioButton" type="radio" value="FrontPage">
List A select list can either be a drop-down box (show on left) or a menu list. The difference is that a menu list will permit the selection of multiple items in the list.
<select name="MyDropBox">
<option>FrontPage</option>
<option>DreamWeaver</option>
<option>GoLive</option>
</select>
Hidden Field A hidden field doesn't show up on the web page. Often you will want to capture a piece of information, but not show it on the web page. This could be a password, or something as simple as the date. The HTML for this hidden field is capturing the date.
<input name="MyHiddenField" type="hidden" value="<%=date%>">
Button A button is used to submit the form, or to reset the form.
<input type="submit" name="Submit" value="Submit">

See These Elements Work

Home - What Is ASP - Simple Scripts - Using Forms - Form Elements - Form Processing - Session Variables - IF THEN ELSE