Posted: Tue Feb 28, 2006 11:57 pm
feyd | Please use
Thank You all
am so grateful
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
ITS SOLVEDCode: Select all
<?php
error_reporting('E_ALL');
$denied = "";
$name = $_POST['name'];
$pass = $_POST['pass'];
if ($name == "Heba" && $pass == "123")
{
header("Location: main.php'');/* Redirect browser */
exit;
}
else {
$denied = "Sorry. You are not authorized to access this page<br>Go <a href='index.php' onclick='history.go(-1);return false'> Back </a>";
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>SYS</title>
.
.
.
.
...
.
.
.
.
.
.
<body>
<?php
if(!empty($denied))
{
echo $denied;
}
?>
.
.
...
.
.
.
.
.
.
.
</body>
</html>Thank You all
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]