note 29677 deleted from language.variables.predefined by victor

From: Date: Fri, 21 Feb 2003 13:30:03 +0000
Subject: note 29677 deleted from language.variables.predefined by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-44311@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 } ?>

« previous php.notes (#44311) next »