I have a web page that has check boxes and text boxes.
The page is a form that allows users to input tax data into text boxes and to tic check boxes.
When a user enters a page a cookie is read containing a unique serial number that constitutes the name of the file for that particular page that contains tax data for that unique user. When the page opens, the text boxes display the current information in the flat file for those fields. When the user exits the page he saves the current information in the text boxes back to the file by using the submit button. Thus a user will see the current information as he flips between the pages in the web site, the current information being loaded and saved as he enters and exits the page.
My problem is that I do not know how to record the status of the check boxes when the user exits the page, and I do not know how to set the status of the check boxes when the user enters the page again.
My coding for a check box is as follows:
<input type="checkbox" name="age1" value="<?php echo $age1;?>">;
When the submit button is pressed, the script saves the data in the text boxes and should save the check box statuses.
If you go to www.terttu-wing-cpa.com you can see that the second data entry page has checkboxes, but if you tic a box, then go to the previous page, and back again to page two, the checkbox tics don't save the previous tic status.
What i would really like is for someone to look at two pages of code and help me write whatever I need to save and then redisplay the status of the checkboxes. I need to write this code for several pages, and at the moment I don't have a clue how to do it. I thought that the value of a checkbox would be saved and that by echoing the value in the input statement that I could set the tic status.
Thanks in advance.
Jerry Wing