cookie+form-->javascript

S

Sergio

<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>
 
E

Erwin Moller

Sergio said:
<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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top