Click to See Complete Forum and Search --> : save form data


milily
07-23-2003, 12:51 PM
Hi everybody,

I need to save the form data in a textfile in the client disk. If I cannot save it directly, I hope at least I can pop up the save window and let the users save the file tothe right place.

Can Javascript do this? If it cannot, can PHP and PostgreSQL do this?

I searched the posts and didn't find the answer. Thank you very much for your time. I would really appreciate if you can give me any hints.

Nevermore
07-23-2003, 01:16 PM
You can't do it with any of those. You could do it with JavaScript if the file were running on the clients machine, and I belive Netscape will allow signed scripts to do it. Failing that, a signed Java applet will be able to.

milily
07-23-2003, 01:58 PM
Then is it possible for me to save the form data in server side first, and then download it to the client side? But if it is possible, how can I delete the files I saved in the server side? Thank you very much.

Nevermore
07-23-2003, 04:10 PM
Yes, it is possible to save files on the server. To delete files you have a number of options. You can either have the server delete them every day at a set time or at a set time after they were made. Which language and what options?

milily
07-24-2003, 12:29 AM
The server side languages were restricted to PHP and PostgreSQL. Other languages like Javascript, HTML.

I don't have a lot of privilege on server. I am only allowed to put my file in the server and save the data in one database. so I prefer to delete the file after some time it is created. Because I think probably I don't have the right to let the server delete the files for me.

So save the form datas in the tables or save them as .txt file? Which way you think is better? And how to delete them?

Thank you very much

Helen