Hello everybody!
I've been working on a PHP script with access to a Mysql database and I need your advice guys with these topics...
This script is requested to load a template file out of a pool of templates placed on the server side; therefore I used the syntax
echo "<TR><TD>Template file </TD><TD><input name=\"template_file\" type=\"file\" /><br /></TD>";
that simply opens a file dialog and lets the user upload a file.
I'm that this feature is up to the browser and that's why the upload dialog "points" to the user (local) machine and not to the server. Since coping these templates to each user is kind of a nonsense, the question is, is there anyway I can open only a file window dialog "pointing" where these template files are stored on the server and of course limiting as well the read procedure to that folder only?
Besides, I would like to provide the user with the possibility to modify some contents of a form. With my mozilla browser, everything works fine but from konkeror or even from internet explorer the files that were designed to be "readonly" can be modified!! This, of course, messes up the flow of my script making it crash!!! Any suggestion??
I hope that I made myself clear enough It's kind of hard to explain problems like these when you're not a native
thank you, any help will be very welcome!!!
kitus
I've been working on a PHP script with access to a Mysql database and I need your advice guys with these topics...
This script is requested to load a template file out of a pool of templates placed on the server side; therefore I used the syntax
echo "<TR><TD>Template file </TD><TD><input name=\"template_file\" type=\"file\" /><br /></TD>";
that simply opens a file dialog and lets the user upload a file.
I'm that this feature is up to the browser and that's why the upload dialog "points" to the user (local) machine and not to the server. Since coping these templates to each user is kind of a nonsense, the question is, is there anyway I can open only a file window dialog "pointing" where these template files are stored on the server and of course limiting as well the read procedure to that folder only?
Besides, I would like to provide the user with the possibility to modify some contents of a form. With my mozilla browser, everything works fine but from konkeror or even from internet explorer the files that were designed to be "readonly" can be modified!! This, of course, messes up the flow of my script making it crash!!! Any suggestion??
I hope that I made myself clear enough It's kind of hard to explain problems like these when you're not a native
thank you, any help will be very welcome!!!
kitus