www.webdeveloper.com
Results 1 to 4 of 4

Thread: Javascript and form to txt file.

  1. #1
    Join Date
    Sep 2013
    Posts
    2

    Javascript and form to txt file.

    Hey guys,

    I was wondering and have been baffled for about 6 hours now as to how i save form data with either Javascript or PHP?

    For example, i have a html page with about 15 different questions in a form. The form contains 3 buttons, reset which defaults the page questions, clear which removes all answers and download(which does nothing at the moment).

    Basically i wanted to set it up so that after i fill out the questions and i click on download it processes the questions into a list and gives me a popup to save the file as test.txt. Problem is im not too sure how to do this?

    I can save a file as .txt with php easily enough but how do i get the form data? do you use echo and save it with php or do you use some sort of javascript?

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,636
    http://www.webdeveloper.com/forum/sh...81#post1289081

    write everything in a txt-file instead of inserting into the DB
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

  3. #3
    Join Date
    Sep 2013
    Posts
    2
    Quote Originally Posted by Padonak View Post
    http://www.webdeveloper.com/forum/sh...81#post1289081

    write everything in a txt-file instead of inserting into the DB
    Cheers, is their a way to implement this so i can save the form to a .txt file from a button click? i don't really want to save it to the server i want to save the data from the form to my pc.

  4. #4
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,636
    sorry, i have never dealed with FSO. may be someone else can help
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

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