-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomepage2.php
160 lines (155 loc) · 3.87 KB
/
homepage2.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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
body{
text-align: center;
font-family: tahoma;
margin: 0px;
}
header{
background-color: #fac305;
color: white;
}
#first_layer{
width: 74%;
text-align: left;
margin: 0px auto;
//border: 1px solid black;
}
#form_heading{
//float: right;
text-align: right;
margin-top: 3%;
margin-left: 45%;
}
#heading_box{
display: -webkit-box;
-webkit-box-orient: horizontal;
//background-color: #fac305;
//color: white;
}
#form{
float:right;
margin-left: 40%;
}
#heading{
}
section{
text-align: center;
background-color: #ffffcc;
padding: 1px;
}
#form_input{
padding: 10px;
border-radius: 5px;
border-style: none;
border: 1px solid #cccc99;
}
#form_input_button{
padding: 5px;
padding-right: 50px;
padding-left: 50px;
margin-bottom: 5%;
background-color: #05fa9b;
border-style: none;
border: 1px solid green;
border-radius: 5px;
cursor: pointer;
box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), inset 0 10px rgba(255, 255, 255, 0.2), inset 0 10px 20px rgba(255, 255, 255, 0.25),
inset 0 -15px 30px rgba(0, 0, 0, 0.3);
color: white;
}
#main_section_form{
margin-top: 6%;
}
#id_footer{
color: black;
background-color: #cec5a2;
padding: 1px;
//margin: 0% auto;
}
.first_layer{
width: 1000px;
//border: 1px solid black;
margin: 0px auto;
text-align: left;
color: red;
}
#footer_nav_list{
padding-right : 25px;
color: rgba(30, 30, 30, 1);
font-size: 13px;
}
footer li{
display: inline;
}
#special{
text-align: right;
float: right;
color: rgba(30, 30, 30, 1);
font-size: 13px;
}
#footer_nav_list2{
padding-right : 95px;
color: rgba(30, 30, 30, 1);
font-size: 13px;
}
#developer{
font-size: 12px;
color: rgba(30, 30, 30, 1);
text-align: right;
//margin-bottom: 0px;
}
#err{
color: red;
}
</style>
<body>
<?php
//session_start();
//$empty_not = "";
//$_SESSION["empty_not"] = $empty_not;
$err = "";
if($_SERVER["REQUEST_METHOD"] == "POST")
{
if($_POST["password"] != $_POST["confirm_password"])
{
$err = "Both password fields must be the same";
}
}
?>
<header>
<div id = "first_layer">
<div id = "heading_box"><h1 id="heading">Netbase</h1> <div id = "form_heading"><form id = "form." action="login.php" method="post"><input type="text" name="Email" placeholder="Email"> <input type="password" name="password" placeholder="password"> <input type="submit" name="Login" value="Login"></form></div></div></header>
<section>
<form id="main_section_form" action="register.php" method="post">
<div id = "err">Password and confirm password must be the same</div>
<h1>Register</h1>
<input type="text" name="Firstname" placeholder="Firstname" id = "form_input" required><br><br>
<input type="text" name="Surname" placeholder="Surname" id = "form_input" required><br><br>
<input type="text" name="Email" placeholder="Email" id = "form_input" required><br><br>
<input type="password" name="password" placeholder="New password" id = "form_input" required><br><br>
<input type="password" name="confirm_password" placeholder="Confirm password" id = "form_input" required><br><br>
<input type="submit" name="Register" value="Register" id = "form_input_button" required><br>
</form>
</section>
</div>
<footer id = "id_footer">
<div class = "first_layer">
<ul style="list-style-type: none">
<li id = "footer_nav_list">Policy</li>
<li id = "footer_nav_list">Terms</li>
<li id = "footer_nav_list2">information</li>
<li id = "footer_nav_list">About Us</li>
<li id = "footer_nav_list">Contact Us</li>
<li id = "special">Netbase © Copyright 2018</li>
</ul>
<p id = "developer">Web developer: [email protected]</p>
</footer>
</body>
</html>
<?php
$message = "";
?>