i have used following script . In this script when the userid and password is correct , it redirects the user to gallery.html but i want to hide this link so that no one can go directly to gallery.html without authentication
<?php
mysql_connect("localhost", "game_cvg", "cvg");
mysql_select_db("game_accounts");
session_start();
$userid = $GET['userid'];
$password = $GET['password'];
$status = 0;
$result = mysql_query("
SELECT credits FROM accounts
where userid = '$userid' and password = '$password' LIMIT 1");
if ($result && @mysql_num_rows($result)) {
// $status = 1;
header("Location:gallery.html");
}
else{
$status = 0;
}
echo $status;
?>