TUTORIAL HTML : checkbox forms and radio forms and select fields
Sample of the pdf document :
checkbox
forms :
Setting the type attribute of an
<input> tag to checkbox places a checkbox element onto the web page.
Deploy checkbox elements in a
situation when the user must check all boxes that apply (or none). A scripting
language such as PHP will easily handle this form element, returning all
elements the user has checked (check out our PHP Form Example.)
HTML Checkbox Code:
<form name="myWebForm" action="mailto:youremail@email.com" method="post">
<p>Please select every sport that you play.</p>
Soccer: <input type="checkbox" name="sports" value="soccer" /><br />
Football: <input type="checkbox" name="sports" value="football" /><br />
Baseball: <input type="checkbox" name="sports" value="baseball" /><br />
Basketball: <input type="checkbox" name="sports" value="basketball" />
</form>
HTML
Checkbox Form:
Please select every sport that you play.
Soccer:
Football:
Baseball:
Basketball:
Soccer:
Football:
Baseball:
Basketball:
Click here for free Download / PDF

0 commentaires: