I have a page that allows a user to post a message and upload an image, the problem is that i also have a 'preview' option, and I can't find any way to initialise the input box with the value that the user has picked on the previous page.
As an example, i have this on the first page.
echo "<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=$max_file_size>"
."$prompt<input name=\"uploadfile\" type=\"file\" size=\"30\">";
The user selects a file, and the file input box will have text for the file path.
Now, when the user selects 'preview', i would like to have
echo "<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=$max_file_size>"
."$prompt<input name=\"uploadfile\" type=\"file\" value=<PreviousValue> size=\"30\">";
But this does not appear to work, any suggestions?