Note:
The answers and comments below reflect the status of outdated browsers in 2009. Now you can really set the value of the file entry element dynamically / programmatically using JavaScript in 2017.
See the answer in this question for details, as well as a demo:
How to set file input value programmatically (for example: when dragging files)?
In HTML, we can set the value of a text field by writing:
<input type="text" name="doc_intitule" maxlength="100" size="24" value="<?php echo $ret['doc_intitule']; ?>">
But how to set the value of the file field?
pheromix
source share