cookie+form-->javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sergio

    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\MyFor m.txt or into cookies directory.
    -->
    <HEAD><TITLE>In sert Your data</TITLE>
    <SCRIPT>
    /*
    Here javascript code
    */
    </SCRIPT>
    </HEAD>
    <BODY>
    <FORM NAME="insert">
    <INPUT TYPE="TEXT" NAME="Last_Name ">
    <INPUT TYPE="TEXT" NAME="First_Nam e"><BR>
    <INPUT TYPE="SUBMIT" NAME="accept" VALUE="Send">
    <INPUT TYPE="RESET" NAME="NotAccept " VALUE="Cancel">
    </FORM>
    </BODY>
    <!- Thanks to You all Sergio -->
    </HTML>
  • Erwin Moller

    #2
    Re: cookie+form--&gt;javascri pt

    Sergio wrote:
    [color=blue]
    > <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\MyFor m.txt or into cookies directory.
    > -->[/color]

    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

    Comment

    Working...