PDA

View Full Version : Save text fields



etg4free
Sep 9th, 2007, 01:30 AM
I would like users to be able to save the text from text fields in an external document. When they return to the page, I would like them to be able to open the external document and have the fields be filled in with the text they saved.

rnd me
Sep 9th, 2007, 07:13 AM
this is a common task.
what exactly do you mean by external document?
do you want to create some kind of a text file that the form values dump into?

if you just want persistant form values:
with shorter fields (total info <2kb), the easiest and most universal way would be using cookies. you would loop through all the inputs, and save thier value to a cookie key. upon loading, you can then check if there is a cookie, and if so, put its value into the respective form input's value attrib.