There are far too many errors in this for it to run :-\
PHP Code:
$pass = $_POST('pass');
// Square brackets ("[" and "]") are used to access an array element.
$user = $_POST('user');
// Ditto.
if ($pass != "f45ls" && $user != "gxydef_user") {
// As John said, you really want || here, or
// it would let the user through if s/he got
// only one right. Also, braces are not necessary
// when only one statement is conditional.
echo "<script>onload=function() {document.body.style.display=\"none\"}</script>";
// Relying on Javascript to do something like this
// is pointless, overly verbose, and insecure. Use
// die() to prevent output from the rest of the page.
};
// This semicolon is unnecessary and possibly illegal.
In short:
Code:
if ($_POST['pass'] != 'f45ls' || $_POST['user'] != 'gxydef_user')
die();
Bookmarks