I have a question, how do you handle a huge data from forms with php and mysql?
I have the next:
~ 50 fields (input text, checkboxex, select, textarea)
After that, I need to save this into MySQL database, and I need to select and filter this data.
Do you have a practice, and what do you use in your projects?
To organise data in such forms, you can use HTML form arrays. Assume we submitting huge amount of data about some house. I’d split data into sections for example:
general,geo,features,descriptionsand compose form like this.UPDATE: using
<fieldset>and<legend>tags and a bit ofjQuery(not demonstrated) you can easily show/hide different groups and name them at your taste.After submitting such form you will be able to access values like:
It will ease your development and reduce efforts to control/parse/enumerate different groups of data.
UPDATE: or one more possible variant is
meanwhile in
PHP