Computing.Net > Forums > Web Development > form action to text file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

form action to text file

Reply to Message Icon

Name: jefro
Date: February 15, 2006 at 15:56:57 Pacific
OS: xp pro
CPU/Ram: athlon
Product: homemade
Comment:

Any ideas on how to take a htm with forms and use the form action to input the data to a text file? I thought it was easy until I can't find a script already written to do that.

I want the user to input any of a number of pull down choices and then, on submit, make a txt file that includes return charactors at each line end and has some delimiter/comment charactors in various places. It should run from local machine and save to local machine to start.

Would another approach work better. A requirement is that things like excel and other databases can't be used.



Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: February 15, 2006 at 16:31:13 Pacific
Reply:

Not only is it not easy, it's not possible :-)

The browser won't let the web page create any files except cookie files on its hard drive...Too much of a security risk. If you can do a server side scripting language (php, asp, asp.net, perl, cold fusion, etc.), then the closest you could get to this would be to have the action point to your script, then have the script send it as an attachment to the browser. The browser would then ask the client whether or not they wanted to save it. If this is an option for you, let us know what server side scripting languages you have available and we'll get you started.

No matter what you do, you'll need to have server-side scripting to process forms. You can cheat and have the action be a mailto: link which works some of the time, or you can use a service like hostedscripts.com that allows you to use their server side scripts.

Good luck,
-SN


0

Response Number 2
Name: jefro
Date: February 16, 2006 at 10:33:28 Pacific
Reply:

Thanks. OK. Guess I will make a program. Darn.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: form action to text file

form action= www.computing.net/answers/webdevel/form-action/478.html

JavaScript Validation - Form Action www.computing.net/answers/webdevel/javascript-validation-form-action/125.html

PHP Form saving to mySQL www.computing.net/answers/webdevel/php-form-saving-to-mysql/615.html