DiNozzo
11-09-2011, 09:12 AM
Hey guys!
I'm kind'a stuck in this problem:
I got a checkbox that I want to have a default value as checked, but when you uncheck it and submit it stays unchecked untill you check it and submit again. (Atleast while you stay on the site and don't close the browser)
So this is what I got:
<?php
$_POST['RNC101V'] ? $RNC101_Checked = ' checked="checked" ' : $RNC101_Checked = '';
?>
<div style="width=200px; height=1000; float=right; border=solid 1px;">
<form method="POST" action"index.php">
<input type="checkbox" name="RNC101V" <?php echo $RNC101_Checked ?>/>RNC101<br />
<input type="submit"/>
</form>
</div>
Help is much appreciated!
Regards
Jonathan
I'm kind'a stuck in this problem:
I got a checkbox that I want to have a default value as checked, but when you uncheck it and submit it stays unchecked untill you check it and submit again. (Atleast while you stay on the site and don't close the browser)
So this is what I got:
<?php
$_POST['RNC101V'] ? $RNC101_Checked = ' checked="checked" ' : $RNC101_Checked = '';
?>
<div style="width=200px; height=1000; float=right; border=solid 1px;">
<form method="POST" action"index.php">
<input type="checkbox" name="RNC101V" <?php echo $RNC101_Checked ?>/>RNC101<br />
<input type="submit"/>
</form>
</div>
Help is much appreciated!
Regards
Jonathan