Click to See Complete Forum and Search --> : Write form data to text file


twowheels3
01-02-2003, 10:12 AM
Hello,

I'm not a javascript guru, but I was wondering if its possible to write form data to a text file on the user's hard drive? Here's my situation: I developed a quiz for a client to be used on their website. The client also wants to use this quiz as a stand alone deal on their laptop. The laptop will not be hooked to the internet. This is not a problem, but now I need to send the form data to something besides an email address. The form data is simply user information the client wants to use for future marketing.

So, is it possible to use javascript to write the form data to a text file on the laptop hard drive? I'm assuming there must be a way, but I'm not familiar enough with javascript to know how to do it. If anyone out there could help me out I'd greatly appreciate it.

Thanks,
Christina

AdamBrill
01-02-2003, 10:19 AM
That isn't possible with javascript. The closest you could come is a cookie. I don't know if that would work for you or not, but you can't write to a .txt file. Sorry.

twowheels3
01-02-2003, 10:41 AM
Thanks for the reply. I was afraid of that. If I write the information to a cookie is there anyway to specify where that cookie file resides?

Thanks in advance,
Christina

AdamBrill
01-02-2003, 12:09 PM
Not that I know of. You could just read it from the browser later, though. If you could write to files on their system, it would be a major security hole. The only other way that you could maybe do it is with ActiveX, but I'm not sure how to do that. :) I would suggest just using the cookie...