修正1
passcheck.php
× <form action="<?=$_SERVER['PHP_SELF'] ?>" method="POST">
○ <form action="<?php echo $_SERVER['SCRIPT_NAME'] ?>" method="POST">