register_variables

From: Date: Mon, 17 Mar 2003 20:55:26 +0000
Subject: register_variables
Groups: php.general 
Request: Send a blank email to php-general+get-140039@lists.php.net to get a copy of this message
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.

« previous php.general (#140039) next »