- method is use uer name and pass write in php file
- no create user table in database
// this is my code
<?php
//use Post
$username = $_POST["Username"];
$password = $_POST["Password"];
session_start();
?>
<?php
if($username=='blog' and $password=='12345678' )
{
$_SESSION["username"]=$username;
$_SESSION["password"]=$password ;
echo "<script>location='../adminpanel'</script>";
}
else
{ echo "<script>location='./'</script>"; }
?>
<?php
echo $loginsucess;echo "<BR>";
echo "Session Login"; echo "<BR>";
echo $_SESSION["username"];echo "<BR>";
echo $_SESSION["password"];
?>
No comments:
Post a Comment