How to Create Php Login System Without Using Database......
welcome To My YouTube Channel Webdev
___________________________________________
Index.php
<?php session_start(); /* Starts the session */
if(!isset($_SESSION['UserData']['Username'])){
header("location:login.php");
exit;
}
?>
Congratulation! You have logged into password protected page. <a href="logout.php">Click here</a> to Logout.
LOGIN.PHP
>?php session_start();
/* Starts the session */
/* Check Login form submitted */
if(isset($_POST['Submit'])){
/* Define username and associated password array */
$logins = array('Alex' => '123456','username1' => 'password1','username2' => 'password2');
/* Check and assign submitted Username and Password to new variable */
$Username = isset($_POST['Username']) ? $_POST['Username'] : '';
$Password = isset($_POST['Password']) ? $_POST['Password'] : '';
/* Check Username and Password existence in defined array */
if (isset($logins[$Username]) && $logins[$Username] == $Password){
/* Success: Set session variables and redirect to Protected page */
$_SESSION['UserData']['Username']=$logins[$Username];
header("location:index.php");
exit;
} else {
/*Unsuccessful attempt: Set error message */
$msg=">span style='color:red'>Invalid Login Details>/span>";
}
}
?>
php,php tutorial,html,learn php,mysql,learn html,html tutorial for beginners,html tutorial,web development,php tutorial for beginners,php for beginners,login,html5,html for beginners,webdev,php programming,html5 tutorial,html css tutorial,css tutorial for beginners,css tutorial,css,registration form in html and css,javascript tutorial,html css,menu bar,wordpress contact form,contact form wordpress,contact form 7 tutorial,contact form 7,web dev,html and css tutorial for beginners,web development tutorial,web design,how to make,php course,mysql tutorial for beginners,mysql tutorial,css3,java programming,java,login form in html and css,login form design,login form,html login form,website using html and css,how to create website using html,dev css,create website using html,building a website using html and css step by step,How To Create A Website Using HTML And CSS Step By Step Website Tutorial,2018 create website,youtube,views,make a website free,make a website for free,make a website 2021,make a website,login screen,how to make a website for free,how to make a website 2021,how to make a website,how to make a free website,how to create a website for free,how to create a website,how to build a website,how to,forms,form,create a website,build a website,table responsive in mobile view,table responsive css,table in html,responsive web design,responsive tables in html,responsive table html css,responsive table design in css,responsive table css,responsive table creation using css and html,responsive table creation in css,responsive table,html css table design,how to create responsive table using css and html,how to create responsive table,css tables,css table,create responsive table in html,wordpress contact form 7,how to
___________________________________________
Social:-
Instagram:- instagram.com/happy_khan_bhaini
facebook:- Facebook.com/happy0386
------------------------------------------------------------------------
>!doctype html>
>html>
>head>
>meta charset="utf-8">
>title>PHP Login Script Without Using Database>/title>
>link href="css/style.css" rel="stylesheet">
>/head>
>body>
>div id="Frame0">
>h1>PHP Login Script Without Using Database.>/h1>
>p>>a href="#">Please Subscribe Webdev>/a>>/p>
>/div>
>br>
>form action="" method="post" name="Login_Form">
>table width="400" border="0" align="center" cellpadding="5" cellspacing="1" class="Table">
>?php if(isset($msg)){?>
>tr>
>td colspan="2" align="center" valign="top">>?php echo $msg;?>>/td>
>/tr>
>?php } ?>
>tr>
>td colspan="2" align="left" valign="top">>h3>Login>/h3>>/td>
>/tr>
>tr>
>td align="right" valign="top">Username>/td>
>td>>input name="Username" type="text" class="Input">>/td>
>/tr>
>tr>
>td align="right">Password>/td>
>td>>input name="Password" type="password" class="Input">>/td>
>/tr>
>tr>
>td> >/td>
>td>>input name="Submit" type="submit" value="Login" class="Button3">>/td>
>/tr>
>/table>
>/form>
>/body>
>/html>
#php login without database
#php login system
#java tutorial for beginners#learn java#mysql workbench#mysql database#free projects#free projects with live preview#free projects for you#vidiq#vidiq tutorial#vidiq vs tubebuddy#mysql download