captain_scarlet87 Posted April 27, 2010 Share Posted April 27, 2010 Hey, Just a simple one hopefully. I need help displaying the appropriate radio button as checked when matching data in a table. At the moment the code snippet below just displays the <% content code on the page when it shouldn't. Cheers. <p> <b>Administrator? </b> <input type="radio" name="admin" value="1" <% If admin="1" Then Response.Write("checked") %> /> Yes <input type="radio" name="admin" value="0" <% If admin="0" Then Response.Write("checked") %> /> No </p> Quote Link to comment https://forums.phpfreaks.com/topic/199967-checking-radio-button-according-to-database-content/ Share on other sites More sharing options...
taquitosensei Posted April 27, 2010 Share Posted April 27, 2010 I think you're in the wrong forum. This looks like a variant of ASP. Definitely not PHP. PHP opening and closing tags would be <?php ?> Quote Link to comment https://forums.phpfreaks.com/topic/199967-checking-radio-button-according-to-database-content/#findComment-1049599 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.