CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2001
    Location
    UK
    Posts
    308

    Validating Radio Buttons

    hi,
    how to validate the radio button, before submitting the form.
    i have 3 radio button, i wanted to know which radio button is selected before submitting the form to the action page

    thnaks in adv.
    Venu
    Venu Bharadwaj
    "Dream it. U can do it!"

  2. #2
    Join Date
    Jan 2002
    Location
    Helsinki, Finland
    Posts
    99
    This should offer some help : http://www24.brinkster.com/zvona/radioCheck.html

    It's in Finnish, but basic principle should be clear. You can form
    groups of radio buttons by giving them a same name (obvious). Only exception is that every group must start with an index number :
    1st group is named : "1Name"
    2nd group is named : "2Name"
    3rd group is named : "3Name"
    ..and so on

    There are red/green ball indicating whether any of the radio buttons in group is checked. If none is checked, an error dialog is displayed and form isn't submitted.
    Zvona - First aid for client-side web design

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured