radio buttons

Results 1 to 2 of 2

Thread: radio buttons

  1. #1
    Join Date
    Dec 1969

    Default radio buttons

    I have two sets of radio button (with three choices in each) and I want users to select one form each of them and redirect them to the next page based on their selection criteria from both sets.<BR>for example if I have choosen "A" radio button from set 1 and "A" button from set 2 then it will redirect me to a different page. and if I select "A" radio button from set 1 and "B" radio button from set 2 then it will redirect me to different page.<BR>Please Help me!!!

  2. #2
    Join Date
    Dec 1969

    Default RE: radio buttons

    Don&#039t see a real quick way to do this. You could give each one a numerical value, then check the value.<BR><BR>&#060;input type="radio" name=rad1 value=1&#062;<BR>&#060;input type="radio" name=rad1 value=2&#062;<BR>&#060;input type="radio" name=rad1 value=3&#062;<BR><BR>&#060;input type="radio" name=rad2 value=10&#062;<BR>&#060;input type="radio" name=rad2 value=20&#062;<BR>&#060;input type="radio" name=rad2 value=30&#062;<BR><BR>On the next page:<BR>dim value<BR>value = (cint(Request.Form("rad1")) + cint(Request.Form("rad2")))<BR><BR>&#039Check the value<BR>Select case value<BR> Case 11<BR> &#039Go somewhere<BR> Case 12<BR> &#039Go somewhere else<BR> Case 13<BR> &#039Go somewhere cool<BR> Case 21<BR> &#039you get the picture<BR>End Select<BR><BR>It might not be the best way...but it&#039s a way...<BR>

Posting Permissions

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