yangkai9999 Posted November 11, 2009 Share Posted November 11, 2009 hello, I have one more question.I would like to use the code to get a value for radio group. It seems having prob. How to change it?thanks,code:How many? <input type="radio" <?php if ($info['V4'] == "1") {echo "enabled";} ?> value="1" name="v4"> 1 <input type="radio" <?php if ($info['V4'] == "2") {echo "enabled";} ?> value="2" name="v4"> 2 <input type="radio" <?php if ($info['V4'] == "3") {echo "enabled";} ?> value="3" name="v4"> 3 </p> Link to comment Share on other sites More sharing options...
justsomeguy Posted November 11, 2009 Share Posted November 11, 2009 If you want the radio button to be checked you need to set the checked attribute to "checked". There's no attribute called "enabled". Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.