-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
67 lines (55 loc) · 1.94 KB
/
index.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
60
61
62
63
64
65
66
67
<?php
session_start();
include 'connection.php';
if(!isset($_SESSION['username']))
{
?>
<!DOCTYPE html>
<html style="zoom:150%;">
<head>
<meta charset="utf-8">
<title>Log In or Sign Up</title>
<link rel="stylesheet" type="text/css" href="styling.css">
<link rel="shortcut icon" href="./webimages/icon.jpg">
</head>
<body>
<nav>
<div>
iTalk
</div>
</nav>
<div id="heading2">
<h1 align="center">Please enter your details</h1>
<h3 style="color: red;" align="center" ><?php if(isset($_SESSION['invalid']))
echo $_SESSION['invalid']?></h3>
</div>
<div>
<section class="login-form">
<h2 align ="center" style="font-family: 'Freight Sans', Helvetica, Arial, sans-serif; font-size:19px; color:rgb(59,89,152);">Sign In</h2>
<form accept-charset="UTF-8" action="validate.php" id="loginForm" method="post" name="loginForm">
<div>
<input name="login" placeholder="Username" type="text" >
<input name="password" placeholder="Password" type="password" >
<input id="button" name="commit" type="submit" value="Sign In" ">
</form>
</section>
<section class="sign-up-form">
<div id="write-up">
<h2 style="font-family: 'Freight Sans', Helvetica, Arial, sans-serif; font-size:19px; color:rgb(59,89,152); " align="center">Sign up</h2>
</div>
<form method="post" action="sign_login_add.php">
<input type="text" name="fname" value="" placeholder="Username">
<input type="password" name="pass" value="" placeholder="Password">
<input id="button" type="submit" value="Sign Up">
</form>
</section>
</div>
</body>
</html>
<?php
}
else
{
header('LOCATION:message.php');
}
?>