473,385 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

cookie+form-->javascript

<HTML>
<!- I need to write code that saves contents of the following form as
MyForm.txt(only Last_Name,First_Name) into directory
c:\MyPATH\MyForm.txt or into cookies directory.
-->
<HEAD><TITLE>Insert Your data</TITLE>
<SCRIPT>
/*
Here javascript code
*/
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="insert">
<INPUT TYPE="TEXT" NAME="Last_Name">
<INPUT TYPE="TEXT" NAME="First_Name"><BR>
<INPUT TYPE="SUBMIT" NAME="accept" VALUE="Send">
<INPUT TYPE="RESET" NAME="NotAccept" VALUE="Cancel">
</FORM>
</BODY>
<!- Thanks to You all Sergio -->
</HTML>
Jul 20 '05 #1
1 1324
Sergio wrote:
<HTML>
<!- I need to write code that saves contents of the following form as
MyForm.txt(only Last_Name,First_Name) into directory
c:\MyPATH\MyForm.txt or into cookies directory.
-->


You cannot access the local filesystem directly with Javascript.

So you could use a cookie to store information in.

Have a look at document.cookie = XXXXXXX

Regards,
Erwin Moller
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.