Re: register_variables

From: Date: Tue, 18 Mar 2003 11:25:23 +0000
Subject: Re: register_variables
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-140107@lists.php.net to get a copy of this message
The problem must certainly come from the register_global turn to off Check this value in your php.ini file "Samug" <samug@vectorstar.net> a écrit dans le message de news: 20030317213300.63978.qmail@pb1.pair.com... > No it's not. > It's a script called LinksCaffe > <http://www.hotscripts.com/cgi-bin/dload.cgi?ID=15062>. > In file catadd.php > > > "Leif K-Brooks" <eurleif@buyer-brokerage.com> wrote in message > news:3E763ADC.2030603@buyer-brokerage.com... > > Is it inside of a function? > > > > samug wrote: > > > > >I'm trying to run a script which uses variables passed via a form, like > > >this: > > > > > >if($lcat_name) > > >{ > > >$sql_query = "INSERT into category VALUES > > >('','$lcat_name')"; > > >$result = mysql_query($sql_query); > > >echo "You add next category<font color=green><b> $lcat_name</b></font>"; > > >} > > > > > >but the variable $lcat_name is empty unless I do this: > > >$lcat_name = $_REQUEST['lcat_name']; > > > > > >Why? > > > > > >I have the variable register_globals on. > > > > > > > > > > > > > > > > > > > > > > -- > > The above message is encrypted with double rot13 encoding. Any > unauthorized attempt to decrypt it will be prosecuted to the full extent of > the law. > > > > > > > >

« previous php.general (#140107) next »