I need to code a web application and I need to pass a two-dimensional table through a form. So in my form, I have 2 loops for like this:
for($col = 0; $col<$SizeM; $col++){
echo "<tr>" ;
for($line = 0; $line<$SizeM; $line++){
echo"<td><input type='number' name=m[$col][$line] min='0' max='1' size = '1'></td>" ;
}
echo "</tr>" ;
}
and I don't know how to get this table back...
I'm trying to do this but it's not working.
$m = $_GET['m] ;
echo "$m [0][1]";
but when I do print_r($m); he works and tells me this
Array ( [0] => Array ( [0] => 1 [1] => 0 ) [1] => Array ( [0] => 0 [1] => 0 ) )
so how can I use this table?