www.webdeveloper.com
Results 1 to 3 of 3

Thread: How to output the input data from the text box to a txt file

  1. #1
    Join Date
    Apr 2010
    Posts
    1

    How to output the input data from the text box to a txt file

    I am making a webpage for OFFLINE use.

    In the webpage, the users are asked to input their school name and
    name in the text box in the page.
    Then, I want to output what their input data to a text file( for example, data.txt) in the form:

    SCHOOL NAME: (user inputted school name)
    NAME: (user inputted name)

    How can I do this using HTML? If I can't do it with HTML only,
    how can i do it using other tools?

    Thanks a lot for your help~

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Not with html. If you use IE, ActiveX can be used with JScript: http://msdn.microsoft.com/en-us/library/z9ty6h50
    Alternatively, run a server on the PC, then use the server language of you choice to read/write to a file.
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Apr 2010
    Location
    USA
    Posts
    55
    Yes dear you can do it by using
    1. HTML
    2. Java Scripting (Client side scripting)

    just simply you have to do is stored all the information you want to save in text file in to the variable

    In javascripting variables can be defined by var variableName

    var schoolName=txtSchool.txt
    var studentName=txtName.txt

    And then this data as a txt file. For that I know the code but better you would do google for this portion it will be good for your learning and incase any problem you can text here . i will reply you

    Regards

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles