I am very new to PHP/MySQL and to my great delight (and utter amazement!) I have managed to create a form containing a list of checkboxes generated from a MySQL database.
I have a "Submit" button at the bottom of the form which reloads the same page and uses the $_POST array to calculate a number which is now displayed at the top.
The improvement I'm trying to make to this page is to keep the boxes checked when the page is reloaded / form submitted so that the user can see what they selected.
I have a sneaky feeling this might be a JavaScript/onChange issue but I thought I'd check here first in case there's a PHP method of "not resetting a form on POST" or something.
😕
In case you need an example:
http://www.amandaryan.co.uk/nutristar/headache.php
Ta