I have an html form that will pass data to a php file that will update my mysql database. It works fine but I want to first have a confirmation page so they can check there info before they submit it. My question is how can I get the variables to the third page. I know how to pass then from the first to the second:
<form method = "post" action = "secondpage.php">
Like I said I know how to get them from the first to the second page
$firstname = _POST['first_name'];
$lastname = _POST['last_name'];
now in the secondpage.php I just print out what they put in the form to confirm but I would like to know how to pass the variables with info (first_name, last_name etc) into the thirdpage.php. so I can actually update the database (which I know how to do ).