Jump to content

Recommended Posts

I try to understand the information. 

 

1 I think when I store the data in a table it will take more time than when I store it in a session array. 

 

2 When there is no electricity for a moment the data in the table will be saved, but the data in the session array will be gone. 

 

3 An autosave is quicker, I think, but not possible in PHP, only in Ajax or JavaScript. But when we have problems with electricity, the data will be saved.   The problem is that it is very difficult to handle.

 

Did I understand the three points correctly?

 

So I can better break the form in four input pages and post it in different tables. But when there is a problem with electricity the pupils have to make one input page again? That does not make them happy, but it will be.

Link to comment
https://forums.phpfreaks.com/topic/288779-autosave/#findComment-1480983
Share on other sites

  • Solution

Are you that worried about electricity outages where you are?  Data saved in the session or in the db will be saved since both are at the server, not at your clients.  And yes - if the data is saved in either you can re-build the input for the users from either the session or the db.  From what you are saying this form is so long it takes the users too much time to complete and you must be worried that the clients will 'time out' and lose everything they are working on .  To me that indicates that I need to build my pages differently.

Link to comment
https://forums.phpfreaks.com/topic/288779-autosave/#findComment-1481011
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.