[SOLVED]Radio button checked or not
Posted: Wed Jul 07, 2004 11:08 pm
HI guys I am trying to figure out how to show the box is checked or not checked from the data base I am trying to use the if and else statement here is the code which obviously doesn't work
The problem is that some of this is html code and I can't figure out how to correct it for php if this worked if the value equals yes it would show it checked otherwise N would show it unchecked.
Code: Select all
<?php
Limited Edtion :<?php if($row_rs_stock['LE'] == "Y")
<input name="checkbox" type="checkbox" value="checkbox" checked>;
else
if($row_rs_stock['LE'] == "N")
<input name="checkbox" type="checkbox" value="checkbox">; ?>
?>