In form when we press submit button , by which method we can store the data of the form anywhere? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In form when we press submit button , by which method we can store the data of the form anywhere?

Which is the best and easy method to stoare form data and retrive it when needed?

18th Mar 2017, 9:43 AM
Saumil Pansheriya
Saumil Pansheriya - avatar
2 Answers
+ 8
you could store the data with js in varables, but that's not really the purpose of forms one way would be, use php to access the user inputs in the form, and store everything in a session, that's the best way to store the data, and be able to easy access everything note: this is a very insecure way to do it, the right way would be to store the data in a database, but that's quite complicated
18th Mar 2017, 10:10 AM
Kamil
Kamil - avatar
0
I also don't know
18th Mar 2017, 9:58 AM
Saurabh Kumar
Saurabh Kumar - avatar