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.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php