Hi Again!
I have done a little bit of research and have got this working, but would like to be able to enter a new name for the file as it is uploaded.
This is the form I am using.
<form enctype="multipart/form-data" action="add.php" method="POST" id="formin">
<table border="0" cellpadding="0" cellspacing="0" id="tablein">
<tr>
<th>New Filename :</th><td><input type="text" name="filename"></td></tr>
<th>File :</th><td><input type="file" name="photo"></td></tr>
<th> </th>
<td><input type="submit" id="button" value="Add" /></td>
</tr>
</table></form>
There are two entries on the form 'filename' and 'photo'. The photo will hold the information of the uploaded file on my hard drive, but I want to rename the file before it is stored in the image folder on the server to the info entered in 'filename'. Obviously I need the database table to store this new filename instead of the original filename, which is stored in the table using the above code.
Any guidance/help would be much appreciated.
Many Thanks in advance.
Phil