Re: GET method doesn't work.

From: Date: Thu, 24 Apr 2003 07:59:43 +0000
Subject: Re: GET method doesn't work.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145127@lists.php.net to get a copy of this message
On Thu, 24 Apr 2003 08:30:21 +0200, you wrote: >I've just installed PHP 4.3.0 and everything seems to be OK, only the GET >method doesn't work. Every variable send via the GET method is empty.. POST >works OK... Recent versions of PHP (4.2+ I believe) have register_globals set to off by default. Could this be your problem? Try accessing your variable through $_GET instead. <? echo $var; echo $_GET['var']; ?> http://www.php.net/manual/en/security.registerglobals.php Although I would expect an "undefined variable: var" error rather than an empty value.... so it may be another problem.

« previous php.general (#145127) next »