Hi there - I'm experiencing a very frustrating problem with an
application that submits POST info to a session control file which
then echo's it back to the controls if the page is returned to.
This works fine, except for check boxes - once it is checked, if I
then then return and uncheck it, then again return to the page later
on, the session still marks it as checked.
The code on the main pages is:
<input name="withdrawals_taken_10" type="checkbox" value="checkbox"
<?php if (isset($_SESSION["withdrawals_taken_10"])) {echo 'checked';}
else {echo '';} ?>>
The code on the control page is:
foreach($_REQUEST as $key => $val) {
$_SESSION[$key] = $val; }
....quite straightforward stuff, but once a checkbox is registered as
set, why does it not register it as unchecked- especially if I leave
them unchecked from the outset, the session will correctly show it as
unchecked.
Hmmm.......help.....
Thanks
Sylvian.