I have a multi-page form (7 pages) that uses session variables and it works great. A new section with checkboxes has been added and has thrown me for a loop.
In each form page I set each session variable right in the value, ie:
<input type="text" name="First_Name" value="<?=$First_Name?>">
For radio buttons, I give them all the same NAME but a different VALUE, ie:
<input type="radio" name="Business_Type" value="Proprietorship"
<? if ($HTTP_SESSION_VARS["Business_Type"] == "Proprietorship"){
print "checked";}?>>
These methods work great but it does not work with checkboxes. I've tried many variations but with no luck. If the checkbox is checked, it stays checked. If you uncheck it and go back and fourth between pages, it remains checked. Here is what I tried:
<input type="checkbox" name="Source" value="Direct"
<?if($HTTP_SESSION_VARS["Source"] == "Direct"){
print "checked";}
if($HTTP_SESSION_VARS["Direct_Source"] <> "Direct"){
print "unchecked";}
?>>
If anyone can help, I would really appreciated it.