Current location: Hot Scripts Forums » General Community » Script Requests » writing form data to a text file

writing form data to a text file

Reply
  #1 (permalink)  
Old 03-01-07, 01:13 PM
topside topside is offline
New Member
 
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question writing form data to a text file

Hi folks,

I need help writing form data to a text file on the server. I'd like to do this with a simple Javascript rather than with PHP. It could probably be done that way but I am a designer, not a real programmer. I don' t have much PHP experience and so am looking for simpler solution.

The application I actually need is a user-configurable dynamic web page - my customer would like to post daily updates and announcements to his website, and I want to allow him to do this WITHOUT giving him root access to the server or making them FTP something, which would requre them to have the password to the server and is also kind of outside the scope of their experience at the moment.

My general plan is in two steps: The first step is to build a dynamic webpage that will display the content of a text file that is saved on the server. This is already done.

The next step will be to give the customer a password-protected HTML form page that will save its input to a text file on the server (the same text file that is displayed is step one). The customer can input the password, type his updates into the form and save his updates as text on the server, which will then be displayed as HTML when the "step one" web page is opened.

Anyone know how to do this (write form data as text file to the server) with Javascript? If not, is there maybe a SIMPLE way to do the same thing and accomplish the same overall functionality with PHP that even a PHP-dork like me could handle?

Thanks guys. All help appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-01-07, 01:39 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 7,572
Thanks: 5
Thanked 27 Times in 24 Posts
Javascript runs on the client's browser and cannot access the server or write to a text file on it. You need a server side language such as PHP/ASP to accomplish this.

I'm going to move this topic to "Script requests".

And here's a similar request which might help: http://www.programmingtalk.com/showthread.php?t=36187
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-02-07, 02:28 AM
alexweb alexweb is offline
Newbie Coder
 
Join Date: May 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
With JS you couldn't write even on client side (in case you're don't using ActiveX which, in addition, runs on IE only). So you definitively must use server side langugage such as PHP/ASP/PERL/PYTHON/JAVA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share 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
Search script improvement 9999 PHP 14 08-28-06 11:46 PM
Submit text in a form to txt file Dooms_day PHP 2 02-16-06 05:54 AM
Php Form + mysql + display data sent needed TheRaider Script Requests 3 10-07-04 01:30 AM
How to I receive dynamic data from a web form? Whipsmack JavaScript 9 05-28-04 01:49 PM
Need to submit form to database and text file - Any ideas how? dpreiss ASP 1 08-21-03 06:02 PM


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