Hello,
Does anyone know if it is possible to pass multi-dimensional arrays via POST or GET. I searched and the last post I saw on this topic was in the year 2000! Back then the opinion was that PHP only supported one dimensioanl arrays. Please let me know.
This is the general idea of what I want to do:
############
echo "<form ...... method=\"post\" action=\"myscript.php\">";
...
...
...
for ($i=0; $i=$num; $i++) {
for ($m=0; $m<$UsrSetsQTY[$i]; $m++) {
echo "<td>";
echo "<input name=\"UsrWghtSetEntry[$i][$m]\" type=\"text\" size=\"3\" value=\"".$UsrWghtSet[$i][$m]."\"></td>\n";
}
}
In myscript.php I want to catch it like so:
$m=0;
for ($i=0; $i<$num; $i++) {
for ($m=0; $m<$UsrSetsQTY[$i]; $m++) {
$UsrWghtSetEntry[$i][$m] = $_POST['UsrWghtSetEntry'][$i][$m];
echo "loop = $UsrSetsQTY[$i] value = $UsrWghtSetEntry[$i][$m]<br>";
}
}
Thanks for any help...