Hi There,
OK, try and absorb what I'm doing at face value before you tell me I'm on the wrong track.
I have form that has fields named schemaArray[1][2], where 1 and 2 could be other numbers (it's a 2d array).
sometimes I get schemaArray into a "local" array from a database. Sometimes it comes in from a form, which you could refer to by $_POST['schemaArray'][1][2].
Lets' supppose I have a form submission with a bunch of schemaArray posts. I want to selectively "unset", say $_POST['schemaArray'][2][5] (we'll just say column 2, row 5).
In the function I declare global $_POST; so far so good. If I were to look at all of my form post ...[2][5] would be missing. But now I want to see if there's something in $schemaArray[2][5], i.e. my LOCAL array I got from the database. So I declare global $schemaArray;
What happens it looks like is that PHP goes back to the $POST['schemaArray'] collection, and considers it as $schemaArray. So, in effect, I never really got rid of $POST['schemaArray'][2][5], it's back to irritate me.
does anyone have any suggestions, on how to have a "local" array, a "post" array of the same name, selectively unset parts of the post and then be able to ask if the local parts are there but the post is not, FROM WITHIN A FUNCTION?
Thanks,
Sam Fullman