HTML Form Basics
Jeff Andersen (HTML / Beginner)This part of the article will show you the various elements of HTML forms and what the code produces. Here is a list of the available field types/modes and examples:
Textbox:
<input type="text" size="25" value="Insert text here into this textbox">
Textarea:
<textarea rows="3" cols="5" name="mytextarea">Type in this textbox here.</textarea>
Drop down box:
<select name="dropdownbox">
<option value="optionone">Option One
<option value="optiontwo" selected="selected">Option Two
<option value="optionthree">Option Three
Checkbox:
<input type="checkbox" name="checkbox">
Checkbox (pre checked):
<input type="checkbox" name="checkbox" checked>
Radio button:
<input type="radio" name="radiobutton">
Radio button (pre selected):
<input type="radio" name="radiobutton" checked="checked">
Reset button:
<input type="reset" value="Reset">
Submit button:
<input type="submit" value="Submit">
All of these have their own unique purpose/usage and can easily be integrated to be used for various things (ie. email or interaction with mySQL databases).
© Copyright 2006 - All Rights Reserved - SiteGuts is a part of the Enthonia Content Network