Re: Forms
| From: | Jean-Christian Imbeault | Date: | Tue, 06 May 2003 06:13:59 +0000 |
| Subject: | Re: Forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146490@lists.php.net to get a copy of this message | ||
C.R. wrote:
foreach($_POST as $field=>$value) { $upfields[] = "$field='$value'"; } $sqlfields = implode($upfields,","); $query .= $sqlfields. " WHERE userid = '$userid'";Do some debugging and you'll see the problem. Add this line to your code : echo "SQL QUERY: $sql<BR>"; You'll find that there are some POST values being passed in that you probably weren't expecting ... like the x and y coordinates of where the button was clicked ... Jc