First, read up on the register_globals FAQ:
http://p2p.wrox.com/archive/beginnin...2002-11/17.asp
Your parse error is due to writing invalid PHP code. To access nested arrays, each array index is in it's own brackets:
echo $_POST['Child'][$Count];
If you can't figure out your error, please post the PHP code that generates that error and we'll tell you what's wrong.
I'm going to take a guess, though: You're echoing your variables from within a string.
Read up on string types here:
http://www.php.net/types.string
If your code looks like this:
echo "The value is $_POST['Child'][$Count]";
This won't work for a couple reasons.
First, when PHP parses an array in a double-quoted string, PHP assumes that the index part of that array will either be a string, a variable, or a number. Since the parser is already in a string, these tokens are parsed as strings, so a number isn't an integer, it's a number string. These values are extracted by the code parser. Each part is called a "token", and these tokens all have names, or identifiers, describing what kind of token it is. For example, the token name for a number string is T_NUM_STRING.
That all said, when PHP parses your line, the first character it reads in the array index is a single-quote mark. This confuses PHP since it's not a variable, number, or string. Well, technically it is a string, but PHP can't handle this as an automatically parsed index. The correct way to do this is to leave out the quotes:
echo "The value is $_POST[Child]";
Second: Within a double quoted string, PHP can only parse up to a single level of indexing in an array. To do more, you'll need to exit the string and concatenate the value (1) or use curly-brace syntax (2). I prefer curly-brace syntax.
1: echo "The value is " . $_POST['Child'][$Count];
2: echo "The value is {$_POST['Child'][$Count]}";
Within curly-braces, PHP breaks out of regular string parsing mode and parses variables as if they were in regular context. Therefore, you do need to quote your string array indexes.
Again, I strongly suggest reading the relevant documentation:
http://www.php.net/types.string
http://www.php.net/manual
Take care,
Nik
http://www.bigaction.org/