Di sini Anda harus melewati $_POST['postid']
if(isset($_POST['posteraser'])){
$postid = $_POST['postid'];
$sql = query("DELETE FROM post_list WHERE postid = '$postid' ");
redirect ('home.php');
}
ATAU sebagai cara prosedur
$sql = query("DELETE FROM post_list WHERE postid = ? ",$postid);