In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Yev) wrote:

> So, it sees $name="field[text][email]", and attempts to retrieve the
> value, so in essense $HTTP_GET_VARS[$name] should return
> "[EMAIL PROTECTED]", but it doesn't work..  
> However, if i try to access $HTTP_GET_VARS[field][text][email] that
> properly returns "[EMAIL PROTECTED]".

The reason "it doesn't work" is because these are not the same reference. 
$HTTP_GET_VARS[$name] expands to:

$HTTP_GET_VARS[field[text][email]]

Which, as you can see, is not the same as:

$HTTP_GET_VARS[field][text][email]

Since you're apparently trying to access the data submitted in

> <input type=text name="field[text][email]" value="[EMAIL PROTECTED]">
> <input type=text name="field[text][url]" value="http://www.email.com">

How about using something like:

extract($HTTP_GET_VARS['field']['text']); //note that index names are quoted
echo $email;
echo $url;

?

Otherwise, if you want to stick with the original method, I believe you 
would use something like:

$name="['field']['text']['email']"; //index names quoted, brackets added
echo $HTTP_GET_VARS$name; //brackets dropped

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to