<?php
$pass_file = "password.txt";
extract($_REQUEST);
if (isset($pass)) {
$stored_pass = trim(file_get_contents($pass_file));
if ($pass === $stored_pass) {
//correct
} else {
//incorrect
}
}
?>