开发者

saving form data permanently

开发者 https://www.devze.com 2023-04-11 09:56 出处:网络
Is it possible to save html form data permanently inside a file or some other place where we can use it later.I know this is possible through Php but i wan开发者_运维百科t to know that is this possibl

Is it possible to save html form data permanently inside a file or some other place where we can use it later.I know this is possible through Php but i wan开发者_运维百科t to know that is this possible just by using JS and Html?


You might be interested in localStorage (here is a page that'll help you get started). However it won't be completely permanent. Persistent yes, permanent no. The user can clear localStorage at any time, and even modify it with relative ease. Be careful how you use it, but it sounds like what you're after.


Absolutely, you can not. HTML & JavaScript are just browser language while saving file is server task.


Try localStorage(depends on browser, about 5M) or cookie (about 4KB), but neither is persistent storage.

0

精彩评论

暂无评论...
验证码 换一张
取 消