It looks like you may have a blank line or space on Untitled-5.php on line 6. If you correct the problem there it should work. It looks like your key column and key value fields are wrong too... it should be set to the key column in the database (usually something like ID) and the hidden form field with the ID value... $_POST['hiddenName']