# sendmsg.php <?php require "func.php"; if ($b1) { if (is_user_exits($fromname) and check_user_password($fromname,$password)) { sendmsg(); echo "成功!<form method="POST"><input type="button" value=" 关闭窗口 " name="B1" onclick="window.close()"></form>"; }