The reason you are getting this error is because by taking out that line, when you update a post, it goes to edit.php. However, edit.php requires an id to be set or it will show that error.
Here is how I would do it. Open up the file you use to edit an entry. Find this line and remove it.
CODE
<input type="hidden" name="id" value="<?php echo $id; ?>" />
Then find this line:
CODE
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
Change it to:
CODE
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>?id=<?php echo $id; ?>">
Find this line and remove it.
CODE
$id = htmlspecialchars(strip_tags($_POST['id']));
Add this instead:
CODE
if (!isset($_GET['id']) ||empty($_GET['id']) || !is_numeric($_GET['id'])) {
die("Invalid entry ID.");
}
else {
$id = (int)$_GET['id'];
}
And you're done. I know of a more simple way but I'm not sure in terms of its security.