I am having trouble passing an array from one page to another.
I want to do a data submission check and set the intial values to 0.
//**********************************************************************************************************
page 1:
<?php
session_start();
$inputs = array();
$v = array();
for($i=0; $i<13; $i++) {$v[$i] = 0; $inputs[$i] = 0; //set inputs to 0
echo "v = $v[$i] "; // debug
}
$_SESSION['inputs'] = '$inputs';
?>
<html>
</html>
//**********************************************************************************************************
page 2:
<?php
session_start();
$inputs = $_SESSION['inputs'];
//for($i = 0; $i < 13; $i++) echo "$v[$i] -";
for($i = 0; $i < 13; $i++) echo "$inputs[$i] -"; //debug
?>
<html>
Input 0
<FORM method="post" action="check-inputs.php">
. . .