-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
112 lines (74 loc) · 3.14 KB
/
index.php
File metadata and controls
112 lines (74 loc) · 3.14 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
require("connection.php");
if (isset($_SESSION['user_id']) && !empty($_SESSION['user_id']) ) {
header("Location: home.php");
}else{
header("Location: login.php");
}
?>
<!--
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="registertest.css">
<link rel="stylesheet" type="text/css" href="bootstrap.min.css">
</head>
<body>
<div class="container">
<div class="col-xs-6">
<div id= wrapper>
<button class="baba" id="button1" onclick="document.getElementById('id01').style.display='block'" style="width:150px;" src="b1.jpg"><span> </span></button>
<button class="baba" id="button2"onclick="document.getElementById('id02').style.display='block'" style="width:150px;" src="2.jpg"><span></span></button>
</div>
<div id="id01" class="modal">
<form class="modal-content animate" action="login.php" method="post">
<div class="container">
<label><b>Computer Code</b></label>
<input type="text" placeholder="Computer Code" name="computer_code" required>
<label><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="password" required>
<button type="submit">Let's Go</button>
</div>
<div class="container" style="background-color:#f1f1f1">
<button style="width:370px;" type="button" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn">Go Back</button>
</div>
</form>
</div>
<div id="id02" class="modal">
<form class="modal-content animate" action="register.php" method="post">
<div class="container">
<label><b>Computer Code</b></label>
<input type="text" placeholder="Computer Code" name="computer_code" required>
<label><b>Date of Birth</b></label>
<input type="date" placeholder="Enter Date of Birth" name="date_of_birth" required>
<label><b>Email Id</b></label>
<input type="email" placeholder="Enter Email Id" name="email" required>
<label><b>Phone Number</b></label>
<input type="tel" placeholder="Enter Mobile Number" name="phone_number" required>
<label><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="password1" required>
<label><b>Confirm Password</b></label>
<input type="password" placeholder="Renter Password" name="password2" required>
<button type="submit">Let's Go</button>
</div>
<div class="container" style="background-color:#f1f1f1">
<button style="width:370px; " type="button" onclick="document.getElementById('id02').style.display='none'" class="cancelbtn">Go Back</button>
</div>
</form>
</div>
</div>
</div>
<script>
// Get the modal
var modal = document.getElementById('id01');
// When the user clicks anywhere outside of the modal, close it
var modal = document.getElementById('id02');
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
</body>
</html>