RE: [PHP] What the hell is wrong???

From: Date: Thu, 20 Jun 2002 08:26:39 +0000
Subject: RE: [PHP] What the hell is wrong???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103091@lists.php.net to get a copy of this message
Wow...believe it or not.. you solved it.. register_globals was OFF!! What i wonder is.. when i was working with php previously, this never happened. and i had never manually changed this to ON before.. is it the new versions in which is it OFF by Default?? Thanks again, very much so.. T. Edison Jr. --- Brian McGarvie <bmcgarvie@lennox-mckinlay.co.uk> wrote: > > What the hell is wrong with this code : > > > > <html> > > <head> > > </head> > > <body> > > <?php > > echo $name; > > ?> > > > > <form action="self.php" method="post"> > > <input type="text" name="name" size=20> > > <input type="submit" value="go"> > > </form> > > > > </body> > > </html> > > > > What is the name of the file? > > Also... if you probably meant to use $PHP_SELF > however, if register_globals is Off this wont work, > you'll need to use, $_SERVER['PHP_SELF'] > > ... > > [ > --------------------------------------------------------- > ] > [ Brian M McGarvie - Director > ] > [ mcgarvie:net OnLine IT Consultancy > ] > [ http://www.mcgarvie.net :: > http://www.the-local-guide.com ] > [ > --------------------------------------------------------- ] ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : abraxastech@yahoo.com Tel : 91-4546512/4522124 ******************************************* __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com

« previous php.general (#103091) next »