Re: update query not working

From: Date: Sun, 23 Feb 2003 23:01:17 +0000
Subject: Re: update query not working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136772@lists.php.net to get a copy of this message
print "<INPUT TYPE=\"Submit\" NAME=\"Submit\" Value=\"Update\"></td>"; print "</form>";
if ($_POST['Update']) { print "updated!!"; } I do not see the statement "updated!!!" printed, but I cannot see anything wrong with my syntax. Any help would be appreciated.
You are looking for a value, where the array is of the form $_POST['form_element_NAME'='form_element_VALUE' So try looking for if ($_POST['Submit']=='Update') { }

« previous php.general (#136772) next »