coded check.php