Jump to content

Would this be un-semantic?


JonnySnip3r

Recommended Posts

This maybe a bit of a silly question but i am interested to know. Ok when coding its better to play by the rules im sure you all know so i was wondering if a more experienced developer would help me to tell me to shut up.

 

Ok i have created a form that has 3 sections after each section it allows you to save the details you have entered, submitting to another file with jquery. Then they move onto the next section at the end of it, the application stores all the information to the database. But when i save the details it stores them in sessions i dont know how else i could temporary store the information. is this a silly way? or is there a better way to do it. I suppose i could submit the data into a temporary database but too much hassle. What do you guys think?

Link to comment
https://forums.phpfreaks.com/topic/219371-would-this-be-un-semantic/
Share on other sites

sessions is pretty much a "temporary database" to store information gathered during a session. i think the way you're doing it is fine, and the way i collect form data across multiple pages. the primary drawback is that the data disappears when the session ends. so if you want to collect the data regardless of whether the entire form is completed (perhaps allowing the user to return to complete the information), you'll need to store the data in a database at some point.

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.