View Full Version : how to put value of an input type file

10-30-2007, 03:02 PM
im trying to query on the database and display the results as value of the input type file like this code below.

<input type="file" name="uploadfile" value="$row[filename]">

I was wondering why the value didnt appear, even if i try to put a

<input type="file" name="uploadfile" value="testing">

anyone has idea how?


10-30-2007, 04:06 PM
Thanks to CFMaBiSmAd I now know that you cannot use the value parameter with a "file" type form element. It's a security issue; if one was permitted to upload any file on your hard drive from a browser, well you can see why that's bad.

10-30-2007, 04:10 PM
ohhh.. okay.. thank you