The page is rendering fine, but the record is not deleted.
I tried deleting it through SQL in PHPMyAdmin, and it worked fine. So I guess there must be something wrong with my script?
What I'm doing is this:
I have a list, on which there is a link to a 'delete' page. On this page, there's a link to the page doing the deleting. It looks like this:
<input type="submit" onClick="parent.location='deleted.php'" value="delete" name="submitButtonName">