foreach ($_GET as $field => $label) { $datarray[]=$_GET[$field]; echo '$_GET[$field]'; echo '<br>'; } print_r($datarray);
This is the output I am getting. I see the data is there in datarray but when I echo $_GET[$field]
I only get ‘Array’
But print_r($datarray) prints all the data. Any idea how I pull those values?
OUTPUT
Array ( [0] => Array ( [0] => Grade1 [1] => ln [2] => North America [3] => yuiyyu [4] => iuy [5] => uiyui [6] => yui [7] => uiy [8] => 0:0:5 ) )
EDIT: When I completed your test, here was the final URL:
http://hofstrateach.org/Roberto/process.php?keys=Grade1&keys=Nathan&keys=North%20America&keys=5&keys=3&keys=no&keys=foo&keys=blat&keys=0%3A0%3A24
This is probably a malformed URL. When you pass duplicate keys in a query, PHP makes them an array. The above URL should probably be something like:
http://hofstrateach.org/Roberto/process.php?grade=Grade1&schoolname=Nathan®ion=North%20America&answer%5B%5D=5&answer%5B%5D=3&answer%5B%5D=no&answer%5B%5D=foo&answer%5B%5D=blat&time=0%3A0%3A24
This will create individual entries for most of the fields, and make $_GET[‘answer’] be an array of the answers provided by the user.
Bottom line: fix your Flash file.