Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Radio Button


6 replies to this topic

#1 kvarnerexpress

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 407 posts

Posted 26 July 2005 - 09:34 PM

I am trying to maintain the radio button selection on a Submit, but the form refreshes to its default selection.

BTW, After a Submit is clicked, the radio form stays visible on the top of the screen while the query results are displayed on the bottom half of the screen (we're using an internal, embedded link). That's when the default selection comes into place.

Any help would be appreciated.
Please respond Kvarnerexpress.

#2 whyme

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 661 posts
  • Gender:Male

Posted 15 August 2005 - 12:11 AM

I am not sure of what you mean, can you clarify by showing some code or a screenshot?

thanks,

whyme

#3 HmmZ

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 362 posts
  • Location:The Netherlands

Posted 15 August 2005 - 07:01 PM

Have you assigned values and names to the radio button?
and what other language are you using to fetch the radio button selection?

i am focussed on php so this'll be in php..

//Query page:
<?php
<form action=\"your_result_page.php\" method=\"post\">
<input type=\"radio\" name=\"radio_name\" value=\"1\">Option 1
<input type=\"radio\" name=\"radio_name\" value=\"2\">Option 2
<input type=\"submit\" value=\"submit\">
</form>

//Result Page:
print "You have chosen ".$_POST['radio_name'].".";
print "<br>";
print "Is this correct?";

//add more..
remember to use the same "radio_name"

is this what you were looking for?

#4 DoR

    Member [Level 1]

  • Kontributors
  • PipPipPipPip
  • 59 posts

Posted 15 August 2005 - 07:02 PM

If just go back in history to the page containing the radio buttons, the value should be preserved.
If you go there by a link, you would need to use php or cookies or something else to show the page how like the visitor left it.

Maybe if you can be more precisely...

#5 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 08 July 2008 - 02:06 PM

raise check event of radiobutton by passing it from other page using querystring
Radio Button

I have two pages on one page there is button and on second there is button and radiobutton I want to check that radiobutton when button on first page is click and that value of check event is pass through querystring with second psge name



-question by rahul

#6 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 12 March 2009 - 07:28 PM

change radio button size ?Radio Button

this might sounds like an easy question but I have yet to figure this out.

How does a person increase the size of a radio button? I need to make the circular clickable area larger. The text next to the button can stay the same size - doesn't matter... When I go into component inspector and try enlarging it, the radio button itself remains the same size. Uggg, seems like there should be a way to do this, but...

any suggestions?? 

thanks in advance!



#7 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 26 December 2009 - 05:24 PM

RadioButton not being selectedRadio Button

I'm making a guessing game for a project. I want this to happen: when a edited picture shows , the user should be able to pick one of the 3 options. If they get the answer right then a message box should come up saying "correct" and the real picture of the celebrity would show. If they get the answer wrong then it would be the other player's turn. The problem is that the user is not able to select a radio button. The code I have so far:Select Case beyonce Case beyonce picCelebrity.Image = My.Resources.Beyonce2 rdbOption1.Text = "Beyonce" rdbOption2.Text = "Michelle Obama" rdbOption3.Text = "Jordin Sparks" If rdbOption1.Checked = True Then MsgBox("Correct!", MsgBoxStyle.MsgBoxRight) picCelebrity.Image = My.Resources.Beyonce Else If rdbOption2.Checked = True Then MsgBox("Incorrect! Player" & count & "gets a chance", MsgBoxStyle.OkOnly) Else If rdbOption3.Checked = True Then MsgBox("Incorrect! Player" & count & "gets a chance", MsgBoxStyle.OkOnly) End If End If End Select

 

-question by mee =)






Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users