Jump to content

Storing Checkboxes and Selects in a $_SESSION?


TJMAudio

Recommended Posts

I am trying to make a form validation, however my form uses heavy amounts of checkboxes and selects (upwards of 400 total).  If a user currently does not fill the form in correctly, he has to go through and completely redo all of his work.

 

How would you store a checkbox or select value in a form, and then set the checkbox/select to that by default if the session is set?

 

The only way I could think of how to do it is run an if() for every single checkbox, checking if the session is set.

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.