
This system has the capability to create a user account as well it can change password. It can do different transactions such as assigning rooms to a students, view availability of rooms, etc. This is very useful system and easy to use.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <form id="form1" name="form1" method="post" action="login.php"> <table width="510" border="0" align="center"> <tr> </tr> <tr> </tr> <tr> </tr> <tr> </tr> </table> </form> </body> </html>
<?php $username = $_POST['username']; $password = $_POST['password']; $query = "SELECT password, salt FROM member WHERE username = '$username';"; { } if($hash != $userData['password']) // Incorrect password. So, redirect to login_form again. { }else{ // Redirect to home page after successful login. } ?>
<form id="form1" name="form1" method="post" action="login.php">
<form id="form1" name="form1" method="post" action="login2a.php">
<?php $username = $_POST['username']; $password = $_POST['password']; $query = "SELECT password, salt FROM member WHERE username = '$username';"; { } if($hash != $userData['password']) // Incorrect password. So, redirect to login_form again. { }else{ // Redirect to home page after successful login. } ?>
<?php $username = $_POST['username']; $password = $_POST['password']; $mysqli = new mysqli('localhost', 'root', '', 'login'); $username = $mysqli->real_escape_string($username); $query = "SELECT password, salt FROM member WHERE username = '$username';"; $result = $mysqli->query($query); if($result->num_rows == 0) // User not found. So, redirect to login_form again. { } if($hash != $userData['password']) // Incorrect password. So, redirect to login_form again. { }else{ // Redirect to home page after successful login. } ?>
Hello welcome again to my blog, today i`m happy to share my first project that I develop by using codeigniter (MVC based php framework)...