note 29677 added to language.variables.predefined

From: Date: Fri, 21 Feb 2003 09:31:10 +0000
Subject: note 29677 added to language.variables.predefined
Groups: php.notes 
Request: Send a blank email to php-notes+get-44299@lists.php.net to get a copy of this message
i am using IIS 5.0 + PHP 4.2.0 + MySQL 3.23.39 and i was having some error inserting form variables to my database. here's a simple code that worked for me: <?php if (isset($HTTP_POST_VARS['submit'])) { include ('scripts/connect.inc'); $sql = "INSERT INTO cit_poll (answer) VALUES ('$HTTP_POST_VARS[poll_answer]')"; $result = mysql_query($sql); } else { //do nothing } ?> -- http://www.php.net/manual/en/language.variables.predefined.php http://master.php.net/manage/user-notes.php?action=edit+29677 http://master.php.net/manage/user-notes.php?action=delete+29677 http://master.php.net/manage/user-notes.php?action=reject+29677

« previous php.notes (#44299) next »