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:
//firstpage.php
<form method = "post" action = "secondpage.php">
first_name
last_name
etc
</form>
Like I said I know how to get them from the first to the second page
//secondpage.php
$firstname = _POST['first_name'];
$lastname = _POST['last_name'];
ect
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 ).
Thank you
//firstpage.php
<form method = "post" action = "secondpage.php">
first_name
last_name
etc
</form>
Like I said I know how to get them from the first to the second page
//secondpage.php
$firstname = _POST['first_name'];
$lastname = _POST['last_name'];
ect
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 ).
Thank you