yangkai9999 Posted November 11, 2009 Report 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 Report 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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now