0

How to remember a radio button selection in the multi form ..?

<input type="radio" name="yesrno" id="radio" value="yes"<?php if($_SESSION['rad_radio']) echo 'checked="checked"'; ?> />

<input type="radio" name="yesrno" id="radio" value="no" <?php if($_SESSION['rad_radio']) echo 'checked="checked"'; ?> />

It keeps on appear the selection "NO".

Any Help ?
Thanks

1
Contributor
1
Reply
4
Views
7 Years
Discussion Span
Last Post by tryphy
0

Got it working :

<input type="radio" name="yesrno" id="radio" value="yes"<?php if($_SESSION['rad_radio']=='yes') echo 'checked="checked"'; ?> />


 <input type="radio" name="yesrno" id="radio" value="no" <?php if($_SESSION['rad_radio']=='no') echo 'checked="checked"'; ?> />
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.