poleposters Posted September 14, 2008 Share Posted September 14, 2008 Hi. I'm putting together a multipage form. Its the first time I've made one. Just wanted to get other peoples ideas regarding the pros/cons of sessions versus hidden fields to carry the values from page to page. Thanks! Link to comment https://forums.phpfreaks.com/topic/124191-multipage-forms-sessions-or-hidden-fields/ Share on other sites More sharing options...
PFMaBiSmAd Posted September 14, 2008 Share Posted September 14, 2008 Depending on what the information is, you should actually store it in a database (after validating it), so that if anything happens during the process, the information already entered is not lost. Link to comment https://forums.phpfreaks.com/topic/124191-multipage-forms-sessions-or-hidden-fields/#findComment-641245 Share on other sites More sharing options...
poleposters Posted September 16, 2008 Author Share Posted September 16, 2008 I've thought about this. It certainly would be the easiest way to go about it. The problem I can see is that if a user gives up half way through completing the form, I'll have incomplete records in the database. Is there a way around this? Thanks. Link to comment https://forums.phpfreaks.com/topic/124191-multipage-forms-sessions-or-hidden-fields/#findComment-643380 Share on other sites More sharing options...
PFMaBiSmAd Posted September 16, 2008 Share Posted September 16, 2008 Store the datatime the data was entered and either using a cron job, scheduled task, or when your page is requested, execute a simple DELETE query to clean out records that are older than a limit you have picked. Link to comment https://forums.phpfreaks.com/topic/124191-multipage-forms-sessions-or-hidden-fields/#findComment-643384 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.