Main Page....
// Hidden Form Fields
"<input name=first[] type=hidden value=$first>".
"<input name=last[] type=hidden value=$last>".
"<input name=class[] type=hidden value=$class_name>".
"<input name=option[] type=hidden value='$upopt'>".
"<input name=date[] type=hidden value=$date>".
"<input name=store[] type=hidden value=$store>".
"<input name=intime[] type=hidden value=$intime>".
"<input name=outtime[] type=hidden value=$outtime>".
"<input name=rtime[] type=hidden value=$rtime>".
"<input name=cost[] type=hidden value=31.50>".
"<input name=rounded[] type=hidden value=$roundedcost>".
//End of Hidden Fields
This data is submitted to the Action Page - which looks like this...
This page is still work in progress - but here is what I have so far.....
<?
// Arrays
$FirstArray = array();
$fname = 0;
$LastArray = array();
$lname =0;
$ClassArray = array();
$classif = 0;
$OptionArray = array();
$opti = 0;
$DateArray = array();
$datei = 0;
// Arrays
while (list($fkey, $first) = each($POST['first'])) {
$fname = array_push($FirstArray, $first);
}
while (list($lkey, $last) = each($POST['last'])) {
$lname = array_push($LastArray, $last);
}
while (list($ckey, $class) = each($POST['class'])) {
$classif = array_push($ClassArray, $class);
}
while (list($okey, $opt) = each($POST['option'])) {
$opti = array_push($OptionArray, $opt);
}
while (list($dkey, $date) = each($_POST['date'])) {
$datei = array_push($DateArray, $date);
}
$count = count($FirstArray);
$i=0;
reset ($FirstArray);
echo "<tr $bgcolor>";
echo "<td><span class=styleText>"; echo current($FirstArray); echo "</span></td>";
echo "<td><span class=styleText>"; echo current($LastArray); echo "</span></td>";
echo "<td><span class=styleText>"; echo current($ClassArray); echo "</span></td>";
echo "<td><span class=styleText>"; echo current($OptionArray); echo "</span></td>";
echo "<td><span class=styleText>"; echo current($DateArray); echo "</span></td>";
echo "<td><span class=styleText>store</span></td>".
"<td><span class=styleText>intime</span></td>".
"<td><span class=styleText>outtime</span></td>".
"<td><span class=styleText>rtime</span></td>".
"<td><div class=styleRate>31.50</div></td>".
"<td><span class=styleText>roundedcost</span></td>".
"<td><div align=center><input name=check[] type=checkbox value=check $check></div></td>".
"</tr>";
while ($i< $count) {
echo "<tr>";
echo "<td><span class=styleText>"; echo next($FirstArray); echo "</span></td>";
echo "<td><span class=styleText>"; echo next($LastArray); echo "</span></td>";
echo "<td><span class=styleText>"; echo next($ClassArray); echo "</span></td>";
echo "<td><span class=styleText>"; echo next($OptionArray); echo "</span></td>";
echo "<td><span class=styleText>"; echo next($DateArray); echo "</span></td>";
echo "<td><span class=styleText>store</span></td>".
"<td><span class=styleText>intime</span></td>".
"<td><span class=styleText>outtime</span></td>".
"<td><span class=styleText>rtime</span></td>".
"<td><div class=styleRate>31.50</div></td>".
"<td><span class=styleText>roundedcost</span></td>".
"<td><div align=center><input name=check[] type=checkbox value=check check></div></td>".
"</tr>";
$i++;
}
?>