Posted by Derek @ Blueyonder on 07/12/06 14:57
>> I am retrieving a fielname for a picture in PHP/MySQL and would like
>> the existing filename that is being retrieved from the database to be
>> shown in a file input. How do I do this please?
>
> It's a security issue, you can't set the value of the file input.
> What would stop you to make it a hidden input and enter a name usually
> found
> in an OS containing private information?
>
> If it's a file that's on your server, just use a text-input, and act
> accordingly after posting the form.
>
> Grtz,
> --
> Rik Wasmus
>
>
Hi
Thank you for your reply.
I have done as you suggested and it works fine.
Many thanks
Derek
[Back to original message]
|