In short, you need to access your variable via the superglobal arrays as
specified here:
http://www.php.net/manual/en/language.variables.predefined.php

Also, you can read from
http://www.php.net/manual/en/configuration.php#configuration.file ::

register_globals boolean
Tells whether or not to register the EGPCS (Environment, GET, POST, Cookie,
Server) variables as global variables. For example; if register_globals =
on, the url http://www.example.com/test.php?id=3 will produce $id. Or,
$DOCUMENT_ROOT from $_SERVER['DOCUMENT_ROOT']. You may want to turn this off
if you don't want to clutter your scripts' global scope with user data. As
of PHP 4.2.0, this directive defaults to off. It's preferred to go through
PHP Predefined Variables instead, such as the superglobals: $_ENV, $_GET,
$_POST, $_COOKIE, and $_SERVER. Please read the security chapter on Using
register_globals for related information. 

Please note that register_globals cannot be set at runtime (ini_set()).
Although, you can use .htaccess if your host allows it as described above.
An example .htaccess entry: php_flag register_globals on. 

Note: register_globals is affected by the variables_order directive. 


> -----Original Message-----
> From: Alex P. [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 09, 2002 6:49 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] PHP doesn't accept url parameters
> 
> 
> Hi, I installed PHP 4.2.0 with apache 1.3 on my win98 machine (my only
> machine) and It works. Ican can generate web pages and all 
> that, but when I tried to accept a parameter from the URL, 
> the varible turned up null. What's going on? Thanx.
> 
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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

Reply via email to