Hi;
Actually thought I understood this but I can't seem to make it happen this morning, and I can't seem to find a clear simple reference here.
Can I pass an associative array from a form (using either POST or GET) to a .php script all at once, in one simple step?
ie. Say I have the following variable/associative array
$graphtable = Array ( [TESTPHASE] => G085 [GRADE] => 3 [0_LE_1_A] => 0 [1_LE_1_A] => 7 [2_LE_1_A] => 28 [3_LE_1_A] => 22 [4_LE_1_A] => 7 [null_LE_1_A] => 0 [PROTOCOLS] => 64 )
And I pass it as a hidden variable in the following form:
<form method="POST" action="../jpgraph-1.19/src/SLFgraph2.php" target="_blank"><input type="submit" value="GRAPH" name="B1"><input type="hidden" name="graphdata" value=$graphtable></form>
When it arrives at the destination script via...
$graphdata = $_POST['graphdata'];
...and I do a
print_r ($graphdata);
All I get is the word "Array".
I'm almost certain I've done this before, but it does not seem to be working for me today.
Anything obviously wrong here?
Thanks.