forms and check boxes... gotta love them
ok here we go
Code: Select all
<br /><b>Visible</b><br />
<font size="1">Do you want to make this Ad visible?</font><br />
<? if($row_rs_edit['visible'] == 'n'){ ?>
<input name="visible" type="checkbox" value="y" checked="checked" /><br />
<? } else { ?>
<input name="visible" type="checkbox" value="y" checked="checked" /> <br />
<? } ?>usually if checked it has visible=>y
i want my form to auto populate to Y if N and if unchecked value of checkbox = N and not empty like it seems to be doing
I cannot for the life of me figure that statement out.. anyone?