PDA

View Full Version : Transfer of variables


Janfek
11-27-2002, 05:11 PM
I want to know if it's possible to transfer 2 values (which are part of a form) from one HTML to another via javascript and then to write a txt file with all the values contained in the second HTML form with the submit action.
Thanks in advance.

glenngv
11-28-2002, 09:20 AM
it's possible to transfer and retrieve values from one page to another using javascript but to write to a text file, you need a server-side language like ASP,PHP,etc...
Might as well use server-side to transfer/retrieve data (instead of using javascript) since you would be using it to write to a text file.

phani
11-28-2002, 11:15 AM
hi

whammy
11-28-2002, 11:53 AM
Glenn is right. JavaScript can't write to text files on the server. The only thing you'd be able to do with javascript is store the information on the user's machine with a cookie...

If your server supports ASP, check out:

http://www.w3schools.com/asp

and look for "FileSystemObject".

Oh, and hi! ;)