Forums

Saving data without submitting

teazmo 17 Feb, 2016
Hi guys,

I want to create a form, where I can type in information in my text-field, leave the page, return to the form and the information, I‘ve entered before, still shows. Is it possible to to store data without submitting the data with a submit button?

The reason, why I want to leave the page, is to select something on a different page and save it to the session object, so that I can use it later on in the form like a shopping cart.

Thanks in advance,

Timo
teazmo 17 Feb, 2016
I want to save data to the session, not to a database.
GreyHead 17 Feb, 2016
Hi Timo,

I guess that you could use JavaScript/Ajax to submit data immediately it is entered and then save it in the User Session. I'm really not sure how that would work though, The simpler answer would be to open the other page in a new browser tab.

If you use a submit (or save) button then you can Submit using Ajax and recover the data later.

Bob
This topic is locked and no more replies can be posted.