HTML
  Home arrow HTML arrow Page 2 - HTML Forms
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

HTML Forms
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2008-02-06

    Table of Contents:
  • HTML Forms
  • Other Input Types
  • Checkboxes
  • Buttons
  • Sending Data with a Form
  • Sending E-Mail Via Forms

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    HTML Forms - Other Input Types


    (Page 2 of 6 )

    Radio buttons are used when you want the user to choose from a limited number of choices. They are named from old style radio buttons that you press in. Here is a sample of how they look in code:


    <html>

    <body>

    <form action="">

    <p>Are You Fat?</p>

    Yes:

    <input type="radio" checked="checked"

    name="Fat" value="yes">

    <br>

    No:

    <input type="radio"

    name="Fat" value="no">

    </form>

    </body>

    </html>

    This would display:

    Are You Fat?

    Yes:
    No:

    Note that the type is "radio" and that the "Yes" radio button's checked value is "checked." This means that in the list of buttons, the "Yes" button is checked by default. If the user clicks on the "No" button, the "Yes" becomes unchecked.

    You may also notice that both buttons share the same name. If the buttons are to work together, the name value must be the same. Otherwise when you click on one, then another, they will both remain checked.

    More HTML Articles
    More By James Payne


       · Thanks for dropping by for my article on HTML Forms. In this one we talk about how...
     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    Stay green...Green IT