How to upload file, then return to form?

Here is the problem, I’m not very good with PHP.

I have a php page with Form 1 and Form 2 on it.

Form 1 - has all the user information and submit button
Form 2 - has a file upload feature and submit button

user uploads file by submitting form 2, it works by sending to another php file.

what I need is them to return and then be able to submit form 1 with all their information, including the name of the file, but the file exists in form 2 and I can’t submit two forms with one button???

am I being stupid, or do I need to have another approach at this?

any suggestions would be great.