I'm trying to pass the data that I input into the three fields generated by the script back to the script for processing in an array. This is my attempt, but I can't figure out why the elements don't have all the data that I inputed when I access them. Any pointers would be welcome.... Thank you
<?php
session_start();
if($_POST['submit'] == "submit") {
$foo = $_SESSION['pass'];
for ($a=0; $a<3; $a++)
{
echo "echo $foo[$a] ";
}
}else
{
echo "CHECK BOX TEST PAGE";
echo "<form action=\"checkboxexample.php\" method=\"post\" >";
for ($a=0; $a<3; $a++)
{
echo "<input type=\"text\" name=\"stuff[$a]\"></input>";
}
$_SESSION['pass']=$stuff;
echo "<input type=\"submit\" name=\"submit\" value=\"submit\"></input> </form>";
}
?>