HELP with Multi Dimensional Array Problem
| From: | Yev | Date: | Thu, 08 Mar 2001 21:36:17 +0000 |
| Subject: | HELP with Multi Dimensional Array Problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43075@lists.php.net to get a copy of this message | ||
Hi,
I've been trying to figure this out all night, and need some
assistance.
I have a form that takes input, and I'm trying to read the variables
directly into a MultiDim array ie:
<input type=text name="field[text][email]" value="email@email.com">
<input type=text name="field[text][url]" value="http://www.email.com">
Now upon the form's submission, these variables are only accessible in
$HTTP_GET_VARS (register_globals is Off)
Now, in the backend, I use a form processing functions that check the
input..
So, it sees $name="field[text][email]", and attempts to retrieve the
value, so in essense $HTTP_GET_VARS[$name] should return
"email@email.com", but it doesn't work..
However, if i try to access $HTTP_GET_VARS[field][text][email] that
properly returns "email@email.com".
This works perfectly if the input names are just plain variables, but
when I try to read those variables into a predefined hash, I run into
problems..
Does anyone have any pointers, or suggestions?
Thanks in advance,
Yev
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/