www.webdeveloper.com
Results 1 to 2 of 2

Thread: Form Radio Boxes

  1. #1
    Join Date
    Dec 2007
    Location
    Mississippi
    Posts
    1,063

    Form Radio Boxes

    How can you allow multiple radio inputs in your HTML form?

    HTML Code:
    <form>
    
    <input type="radio" value="yes">Yes
    <br>
    <input type="radio" value="no">No
    <br><br>
    
    <!-- An option for something completely different -->
    <input type="radio" value="yes">Yes
    <br>
    <input type="radio" value="no">No
    
    </form>

  2. #2
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    give each group a different name.
    HTML Code:
    <form>
    <input type="radio" name="rad1" value="yes">Yes<br>
    <input type="radio" name="rad1" value="no">No <br><br>
    <!-- An option for something completely different -->
    <input type="radio" name="rad2" value="yes">Yes <br>
    <input type="radio" name="rad2" value="no">No
    </form>
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles