Before you get carried away with registering globals, try echoing:
$_SERVER["HTTP_USER_AGENT"];

Or, for versions prior to 4.1.X, change that to:
$HTTP_SERVER_VARS["HTTP_USER_AGENT"];

Registering globals is insecure unless you are VERY careful about how every variable 
you have is
defined...

Cheers,

# Nathan

----- Original Message -----
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "baldey_uk" <>
Cc: <>
Sent: Friday, April 26, 2002 6:41 PM
Subject: Re: [PHP] Variables not working


Turn on register_globals in your php.ini file.

On Sat, 27 Apr 2002, baldey_uk wrote:

> Hello all, im not sure if its my installation or if on doing something wrong
> but i cant seem to use any of the variables from forms that i PUT to. Or any
> full stop! even
>
> <?php echo $HTTP_USER_AGENT; ?>
>
> doesnt out put anything. Anyone seen this before?
> thanks in advance for your help
>
>
> Cheers From
>
> baldey_uk
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to