I am trying to create three pages that when a name is entered in a text box and the button is clicked to the next page, it will ask to confirm if the name entered is correct and to click the next button to go to the last page. The text entered should transfer or pass from the first page, to the second, then the third. I have to use "hidden" as well as "header" as well as "POST" in the code.
here is what I have on page one so far:
<? $things = array('one thing', 'two thing'); ?>
<form action= "page1.php" method="POST">
<INPUT TYPE="TEXT" name="textbox">
<input type='hidden' name='secret' value=96>
<input type='hidden' name='stuff' value='<?= urlencode(serialize($things)) ?> ' >
<input type='submit' name='submit_btn'>
</form>
This is what I got on the next page:
<?php
echo "Click next if your name is " . $_POST['textbox'];
?>
<form action= "page2.php" method="POST">
<input type='hidden' name='secret' value=96>
<input type='hidden' name='stuff' value='<?= urlencode(serialize($things)) ?> ' >
<input type='submit' name='next' value ="next">
</form>
and this is what i got on the last page... please help! thank you!
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<form action= "page1.php" method="POST">
<?php
echo "Finally! Welcome " . $_POST['textbox'];
?>
</form>
</body>
</html>