Devi passare qui il $_POST['postid']
if(isset($_POST['posteraser'])){
$postid = $_POST['postid'];
$sql = query("DELETE FROM post_list WHERE postid = '$postid' ");
redirect ('home.php');
}
O come procedura
$sql = query("DELETE FROM post_list WHERE postid = ? ",$postid);