>>593
恐縮ですが、削除というのはどうすれば出来るのですか?

$_POST['msg'] = preg_replace ('^$', '', $_POST['msg']);
これじゃダメですよねぇ?