Forum Moderators: open

Message Too Old, No Replies

Writing to local comptuer

         

ryan_b83

7:08 pm on Oct 6, 2006 (gmt 0)

10+ Year Member



Hello I am trying to make a very small and simple script that only runs locally through a single html file. All i am trying to get it to do is have 2 text fields (name, and email). Fill them in, Submit. And store those values locally in a text file. The script will be run from my local computer aswell.

Now i know that javascript cannot access external files. But could this be done with cookies?

Thanks,
Ryan

DrDoc

5:12 am on Oct 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Technically, yes, that would be possible ... setting the values in a cookie, retrieve the values and submit. But, why not just preload the form with said values?

ryan_b83

3:46 pm on Oct 18, 2006 (gmt 0)

10+ Year Member



I was trying to harvest names and email addresses at a tradeshow, so without an internet connection i didnt know any other way to do it via a web page.

DrDoc

5:15 pm on Oct 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Create an "HTML Application" and run it in IE. That should allow you to write to a local file.

whoisgregg

5:34 pm on Oct 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



so without an internet connection i didnt know any other way to do it via a web page.

Set up a web server on the computer you'll be bringing. Then you can have a local database and run a normal script that handles the form post. :)