Here is my problem. I have 6 php script that uses HTML Forms to pass variables and performs calculations from script 1 to script 2...to script 6. What I would like to do; is to go back and from the last php script 6 and jump back to php script 4; but save all the values that the user picked and set them as the default values in the HTML Form on php script 4.
For example if I have 3 scripts, testsw1, testsw2 and testsw3. And the users chooses "Dog"; how can I make the default FORM HTML in testsw1.php to be "Dog", when the user jumps to testsw1.php from testsw3.php? Below:
=======================================
testsw1.php
<html>
<head>
<title></title>
</head>
<body>
<?php
echo "Hello! testsw1 ";
?>
<form action="testsw2.php" method="post">
<select size="1" name="item">
<option value="Cat">Cat</option>
<option value="Dog">Dog</option>
<option value="Fish">Fish</option>
</select>
<input type="submit" value="Send">
</form>
</body>
</html>
testsw2.php
<html>
<head>
<title></title>
</head>
<body>
<?php
echo "Hello! testsw3 ";
echo "<br>\n";
echo "item = ",$item;
echo '<form action="testsw1.php" method="post">';
echo "<input TYPE='hidden' NAME='item' VALUE ='";
echo $item,"'>";
echo '<input type="submit" value="Send">
</form>';
?>
</body>
</html>
testsw3.php
<html>
<head>
<title></title>
</head>
<body>
<?php
echo "Hello! testsw3 ";
echo "<br>\n";
echo "item = ",$item;
echo '<form action="testsw1.php" method="post">';
echo "<input TYPE='hidden' NAME='item' VALUE ='";
echo $item,"'>";
echo '<input type="submit" value="Send">
</form>';
?>
</body>
</html>