I store the values from all the pages in session variables, but it does not matter this time.
page1.php (action: page2.php)
page2.php - post[filelds from page1]-->session variables (action: insert.php)
insert.php - post[filelds from page2]-->session variables - insert all values to the db
the file field(s) is in page2.php and I would like to upload the file when submitting page2, but insert all the data and the file names to the database in insert.php, is it possible?
To be honest I don't really want to move the whole insert script to page2.php just because of the file fields.