Jump to content

call the value of radio button


melo

Recommended Posts

Can anyone help me on how can i call the value of radio button.

I have this code:

 

<input type='radio' name ="answers <?php echo $arMChoices['QuestionId']?>" value="True">True
<input type='radio' name ="answers <?php echo $arMChoices['QuestionId']?>" value="False">False 

 

 

and i want to display the value of the radio button to another page. Thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/275757-call-the-value-of-radio-button/
Share on other sites

Values from database?

I did it so:

'<span class="radiotrenner">
<input type="radio" name="gender" value="male"'; if (($row['gender']) == 'male') echo 'checked="checked"'; echo '>male</span>',

'<span class="radiotrenner">
<input type="radio" name="gender" value="female"'; if (($row['gender']) == 'female') echo 'checked="checked"'; echo '>female</span>',
	
	

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.