In an Upload Form that I’m using, it has this line:
$newfilename = $_SESSION['user_id'].$_FILES["file"]["name"];
I need to “store the newfilename in a session variable”
(in another php file)
and use the session variable in this link, instead of newfilename,
<a href="upload/<?php echo $newfilename?>"><?php echo $newfilename?></a>
So, would this be correct?
$newfilename = $_SESSION['newfilename'].$_FILES["newfilename"];