Unless you're just careless with your terminology, I believe the problem is that you are confusing different concepts with each other. If confirm.php deals with data storage and data retrieval, then it can be called a database. But if that it really what it does, there should be no problem using it to store data on the first form post and retrieve the same data whenever you need it. 1 request later, 10 requests later...
But you also refer to confirm.php as a "page". Do note that a page can be generated by any number of files. And one file can generate any number of pages. Different pages can be generated by the same files, or share some files.
nblackwood;10942981 wrote:
I want to know how to send data to this file while redirecting the user at the same time.
That would depend on what it contains. Make use of the file in your script with
require 'confirm.php';
Perhaps it just contains code that run automatically when you include the file. Perhaps it contains only functions and/or class definitions. Then you'd have to actively make use of those. Perhaps confirm.php uses $GET or $POST data directly. Perhaps you need to pass this data to it.
Either way, once confirm.php is done storing data (assuming this is what it really does), send http status header (resource created?) followed by location header.