Login successfully
This page is the home, you can put some stuff here......
GOD is so great of your life . It works! Keep up the good work and GOD BLESS :)
error_reporting = E_ALL & ~E_NOTICE
Page1:login.php
<?php
session_start();
mysql_connect("localhost","root","") or die("error connect");
mysql_select_db("task2") or die(" error database");
$email=$_POST['email'];
$pass=$_POST['password'];
$login=mysql_query("SELECT * FROM login WHERE email='$email' AND password='$pass'");
$sql=mysql_num_rows($login);
if($sql!=0){
$_SESSION['email']=$email;
header('Location: login_verify.php');
}
else {
echo "Wrong Username or Password";
}
?>
page2:login_check.
<?php
session_start();
if(isset($_SESSION['email'])){
echo "<center><h1>".$_SESSION['email']."Welcome to Home page</h1></center>";
}
else{
header('Location: login_im.php');
}
?>
<a href="newlogout.php">Logout</a>
page3:logout.php
<?php
session_start();
session_destroy();
header("location:/login_im.php");
?>
i create one form but not connect the internet
i want login system. my [email protected]
Hello Sir,
I'm also try to develop login system.I'm new in PHP.Please send me complete login system for my reference if possible.my email-id is:[email protected] .