Hi there,
I'm looking for the best approach to create variables that will carry across multiple form submits. Basically, I have several mySQL tables containing texts and attributes of the page, such as notifications, background color, font types, etc. Ideally I would like to query the database just once to grab these values, and carry them across multiple form submissions.
I attempted to define these as constants, but it seems that when there is a form submission on the page, the constant needs to be defined again, which means my query needs to run again to grab the same old variables.
Is there a way to accomplish this, hopefully without the use of sessions or cookies? Or is there no escaping having to query the database each time a form post takes place on the page?
Thanks much in advance!