I'd like to use an array to pass form variables around. I'm using sessions to pass the array but can't seem to get the variables to pass. This is my code and it seems to me it should work:
<?
session_start();
$list = array();
session_register('list');
?>
<form action = "test.php" method = "post">
<input type = "text" name = "list[1]"><br>
<input type = "text" name = "list[2]"><br>
<input type = "text" name = "list[3]"><br>
<input type = "text" name = "list[4]"><br>
<input type = "submit" name = "submit_button" value = "Submit">
</form>
I know the array is being passed, but I lose the data from the form. What am I doing wrong?? Thanx!!
Aaron