Making an fairly large html form across 8 pages that updates a mysql database and then fills out a pdf.
My question has to do with pages auto-populating with session variables if the user has already been to that page. Pretty easy.
However, I have a lot checkboxes, so I'm looking for advice. The checkboxes are obviously posted as arrays (have to use POST)
Is there a simple way to see if an array contains a value without looping through it?
I have to put the arrays into a database in the form of values like 01/02/03/04 - should I go ahead and make my string an then regular expression search?
Is there a better option. I know I can do it, I'm looking for efficiency here - I'm talking up to 500 checkboxes a page on some of these - I don't want to loop through an array to see if it contains a value 500 times - I'm guessing there is a better option to set a checkbox to checked if it is supposed to be.
Thanks in advance