Yes of course. When you do the upload routine it depends what happens thereafter.
If the upload routine redirects to a new page after successful upload, the easiest way would be to store the filename in a session variable.
Yes the upload form is in upload.php when they click the upload button the upload_pdf2.php is loaded up. So should I put the first section with my form in upload.php then the second section in upload_pdf2.php? I understand how it works, however calling that header breaks my header Ive already called. What do you think would be the solution to this. Thankyou for your help by the way!