Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

writing to a file without a server

Status
Not open for further replies.

slin9

Programmer
Aug 4, 2003
3
US
Is there anyway to write to a local file from data entered in a local HTML form without a server or any type of backend?

Using ActiveX or java applets or something?

ie: an html page sitting on a box with c:\webpage\webform.html writing to a file on that box c:\webpage\log.txt.

Thanks!
 
I guess you will have to use an ActiveX control to do this. If am not totally wrong all the other technics (like applets, scripts, whatever) are not able to access anything on the clients filesystem (for security reasons).

Perhaps you could let the form be processed by the server. Afterwards you could let the server write a file that the user can download after filling out the form....

May I ask what you want to do exactly resp. what the form is good for?

Cheers

frag

patrick.metz@epost.de
 
my customer wants users (who will all be using the same machine) - after completing a flash tutorial to enter their names in an html form.

then their manager can pull up the .txt file to see who has completed the tutorial. no server, no backend.
 
It can be done easily with a variety of scripting languages. I prefer PERL myself, which you can get freely from ActiveState.com. PHP, javascript, and asp can also be used. Just remember, it can only be done to and from the local machine. All files MUST exist on the local machine.

There's always a better way. The fun is trying to find it!
 
@tviman:
Oh... you can create files on the client if I just work local? Cool... did not know that.
But don't you need a server for processing things like PHP and PERL? JavaScript runs locally but what about the rest? How can I use PHP without a webserver?

patrick.metz@epost.de
 
i got it working with activex fileSystemObject
 
Frag you don't need a server at all or a server-side language. It can be done in a Microsoft environment. I will try and find a link for you.

Clive
 
@CliveC:

Yes, I understood that it can be done with java script for example and that doesn't need any server at all. My question was if I can use PHP and PERL without installing anything on the client. I always thought that you would need a container that handles PHP (in a webserver). I just wanted to know if I can use PHP without having a webserver.

Cheers

frag

patrick.metz@epost.de
 
ASP and PHP require a webserver and moduals. Java (Java can write files to computer hosting the applet only ("phone home" policy) which means it could do the work), VBScript or javascript would be the best way to do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top