Current location: Hot Scripts Forums » General Web Coding » JavaScript » save form data to text file


save form data to text file

Reply
  #1 (permalink)  
Old 12-08-04, 01:35 PM
hinch hinch is offline
Wannabe Coder
 
Join Date: Oct 2004
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Question save form data to text file

as the title suggests. i know it can be done, but i haven't found anything that i've found understandable. i just want a script that when the submit button is pressed, it's saves the form data (which is just one text area) to a flat text file on the server.

cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 12-10-04, 06:22 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
It CAN'T be done. No server interraction is possible using Javascript only since it's entirely executed on the CLIENT.
You must use some type of server scripting like PHP or ASP to be allowed to store even text files on a server.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-21-11, 09:10 PM
PythoneX12 PythoneX12 is offline
New Member
 
Join Date: Nov 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Twod.... It is possible u noob. Lol.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-22-11, 12:57 PM
DLJ DLJ is offline
Newbie Coder
 
Join Date: Nov 2011
Location: 303 See Other
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
No, Twod is correct. The PHP for it is rather simple however. The form method should be post, the action a PHP page, then use PHP's very own fwrite() command.

PHP: fwrite - Manual
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Results To Text File bxcheats PHP 2 09-25-04 09:36 PM
Excel document containing records, need to save as a text file to upload to mysql bearslife PHP 1 06-05-04 04:24 AM
Write form data to file dragge PHP 1 12-27-03 08:26 PM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 05:28 PM
picking random entries with a filter... Double selection problem dsumpter PHP 7 11-16-03 08:19 PM


All times are GMT -5. The time now is 07:20 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.