Greetings, June 20th 2013
I recently successfully achieved writing the values of 12 check boxes to file while using an array statement along with the check boxes arrayed. Now upon reading the values upon page load I used a switch statement to relate the file line to a variable that is echo'ed into the check boxes however the check boxes are erratically selected, checked. All of the numbers correspond and it should work the original file is correctly written and upon reloading the "echo" to the page as a test appears exactly as the file is written. Only when it enters the switch statement does thing appear to go awry and check boxes are erratically selected to represent no logical, detectable pattern?...any ideas?
<?php if ($stat2=="1") { print 'checked="checked" '; } ?>
Appreciatively,
Ted