-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdash.php
More file actions
33 lines (31 loc) · 1010 Bytes
/
Copy pathdash.php
File metadata and controls
33 lines (31 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<?php
session_start();
?>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<?php
if ( isset($_POST['submit']) ) {
$day3_email = $_POST['email'];
$day3_password = $_POST['password'];
$_SESSION['email'] = $day3_email; // storing email in session variable
$_SESSION['password'] = $day3_password; //storing password in session variable
if ( $_SESSION['email'] == "asim@gmail.com" and $_SESSION['password'] == "1234" ) {
// .. credentials check ...
?>
<form action= "control.php" ><input type="submit" name="logout" value="logout" /></form>;
<?php
} else {
// ... go to log in page and enter credentials ...
include('signin.php');
}
} else {
// ... go to log in page and enter credentials ...
include('signin.php');
}
?>
</body>
</html>