I am not sure what the correct syntax is when using the $_GET array to access array values :
The old way (with registered globals on) :
for ($i = 0; $i < sizeof($names); $i++) {
echo $names[$i];
echo "<br />\n";
}
How I thought it worked using $_GET
for ($i = 0; $i < sizeof($_GET["names"]); $i++) {
echo $_GET['names[$i]'];
echo "<br />\n";
}
This does not work - (the echo statements) I have tried many, many variations and looked for literally hours on the Internet with no success! I know it is extremely simple, but I can not find the correct syntax for this statement.
Please help me, I am very new at this 🙂