|
|
HTML Code TutorialTutor Ebook Download Using Check boxes in FormsCheck boxes allow your user to make more than one selection in a list.
Attributes
Example: When using check boxes the name attribute must be the same for each check box. In the example above, multiple check boxes would each share the name color. In the example above multiple check boxes would include a different color in each value attribute. The Label preceding or following the check box would match the value. Now let's build a simple form: Note: Try the form. Execution is via PHP. (Script below) |
Contents Table of ContentsIntroduction Page Structure Basic HTML PageDoctype The Body Tag The Header Tag The Division Tag Horizontal Rule Anchor Tag Anchor Tag - Intradocument Anchor Tag - Image Using Borders The ID Attribute Meta Tags Text Controls Style SheetsWorking With Fonts The Paragraph Tag Paragraphs-Images Using Lists The Pre Tag Line Break Tag Tables Basics of TablesColspan Forms Form BasicsCheck Boxes Text Boxes Selection Boxes Frames Basic FramesTarget and Scrolling Search Engines Miscellaneous Buttons with CSSUsing Color Color Chart Using Images Using Templates Uploading HTML pages. HTML-CSS Quizzes |
<html>
Execute Form With PERLNote: Copy this code and paste it into a page. Copy the script demo_html40.pl and place it in your cgi-bin folder. Then start the server and run the page that contains the checkbox form. |
|
|