Re: PHP doesn't except parameters?

From: Date: Tue, 09 Jul 2002 18:50:53 +0000
Subject: Re: PHP doesn't except parameters?
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-7681@lists.php.net to get a copy of this message
On Thursday, July 4, 2002, at 05:59 PM, Alex P. wrote:
Hi all, I'm a newbie to PHP. When I installed PHP 4.2 and apache 1.3 onto my computer, it all worked. I can generate web pages and all that, but when I tri to pass a parameter through the URL to the PHP script, it doesn't work. Their are no error messages it just does go through.
How are you checking for the value? If your url is something like http://yoursite.com/yourscript.php?yourvariable=value then in yourscript.php you should be able to access the yourvariable value through the auto-global GET array like this: $_GET['yourvariable'] So you could say print("yourvariable: " . $_GET['yourvariable'] . "<br>\n"); PHP doesn't automatically create a global variable $yourvariable for you anymore unless you turn register_globals on.

« previous php.install (#7681) next »