JonnySnip3r Posted November 21, 2010 Share Posted November 21, 2010 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 More sharing options...
BlueSkyIS Posted November 21, 2010 Share Posted November 21, 2010 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. Link to comment https://forums.phpfreaks.com/topic/219371-would-this-be-un-semantic/#findComment-1137499 Share on other sites More sharing options...
JonnySnip3r Posted November 21, 2010 Author Share Posted November 21, 2010 Thanks for your reply dude Link to comment https://forums.phpfreaks.com/topic/219371-would-this-be-un-semantic/#findComment-1137522 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.