JavaScript is client-side code. Trying to save files locally violates the browser security model.
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
Document.write prints to the current HTML page, not to the hard drive, I believe. There is no way to get JavaScript to write anything to a hard drive. You will need to use a server-side language such as PHP or ASP, to save to the server's drive.
cscgal
The Queen of DaniWeb
19,437 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 231
Of course, you CAN save your form values in cookies. Not all users have cookies, enabled, but that is exactly what cookies were designed to do.
Do you need help with JavaScript cookie code?
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
Did this work? Do you need more help? Pleave give us some feedback.
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37