-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlanding.php
59 lines (57 loc) · 1.29 KB
/
landing.php
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
session_start();
if(!($_SESSION["username"]==true))
{
header("location:login.php");
}
else{
$method=$_SESSION['method'];
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="landstyle.css">
<title>
<?php
if($method==="login"||$method==="signup")
echo "Landing Page";
else
echo "ERROR";
?>
</title>
</head>
<body>
<div class="content">
<h1>YOUR PROFILE ADDED SUCCESSFULLY!!</h1>
<div class="text">
<?php
if($method==="login")
echo "Your account is active click on the button below to visit your account --->";
else if($method==="signup")
echo "To visit your acount you need to login , Kindly click the button below to go to Login Page --->";
?>
</div>
<a href="<?php
if($method==="login")
{
$_SESSION['profile']="complete";
echo "dashboard.php";
}
else if($method==="signup")
echo "login.php";
?>
"><input class="backbutton" type="button" value="<?php
if($method==="login")
echo "Go to Dashboard";
else if($method==="signup")
{ echo "Go to Login page";
session_unset();
}
?>
"/></a>
</div>
</body>
</html>