I not sure what you mean are you pulling the name of the file form a DB if so fetch the query for the name
assuming the query name is result
$row = mysql_fetch_array($result)
Then echo row
<? echo $row[filename] ?>
Hope that helps
BB wrote:
I have a PHP page which enables a user to upload files.
The problem I have when I retrieve a record from a MySQL database using PHP I want to display the current filename which is saved with a record and display it within the text box that is part of the File Upload form object.
I have tried the following
<INPUT TYPE="file" NAME="filename" VALUE="<?php echo $filename; ?>">
The field returns nothing.
Can anyone tell me whether or not the VALUE property for a file/browser text box will display a value. I cannot get it working.
Many Thanks