-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindexold.php
65 lines (57 loc) · 1.69 KB
/
indexold.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
<?php
include "core/init.php";
include "includes/header.php";
if(logged_in()){
$username = $user_data['username'];
header("Location: ../website/$username");
}
?>
<!DOCTYPE html>
<html>
<?php
#If press login:
if (!empty($_POST['loginsubmit'])){
#Login Details:
$submit = $_POST['submit'];
$email = $_POST['email'];
$password = $_POST['password'];
if ($submit){
if ($email && $password) {
}
else {
echo "Please fill in <b>all fields.</b>";
}
}
}
#If press register:
if (!empty($_POST['registersubmit'])){
}
?>
<head>
<div id="header">
<div id="title">Interesteen</div>
<div id="movable">
<form method="post">
<input type="text" name="email" placeholder="Email" class="logininputoriginal1">
<input type="text" name="password" placeholder="Password" class="logininputoriginal2">
<input type="submit" name="submit" class="loginbutton" value="Login" name="loginsubmit">
</form>
</div>
</div>
</head>
<body>
<form action="" method="post" >
<ul id="form">
<br /><br /><br /><input type="text" name="email2" placeholder="Email" class="logininput"><br />
<input type="password" name="password2" placeholder="Password" class="logininput"><br />
<input type="password" name="passwordagain" placeholder="Re-enter password" class="logininput"><br />
<input type="text" name="fname" placeholder="First Name" class="logininput"><br />
<input type="text" name="lname" placeholder="Last Name" class="logininput"><br />
<input type="submit" name="submit2" class="submit" value="Register" class="logininput" name="registersubmit"><br />
</ul>
</form>
</body>
</html>
<?php
include "includes/footer.php";
?>