-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudent.html
More file actions
131 lines (129 loc) · 2.31 KB
/
Copy pathstudent.html
File metadata and controls
131 lines (129 loc) · 2.31 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<style>
body {
background-image: url("bg2.jpg.jpg");
background-repeat: no-repeat;
background-attachment: scroll;
background-size:cover;
}
#login-box
{
position:relative;
margin:0;
height:300px;
width:600;
background:rgba(255, 99, 71, 0.4);
box-shadow: 0 2px 4px rgba(0.5,0,0,0.6);
}
input[type="submit"]
{
margin-bottom:28px;
width:120px;
height:42px;
border:none;
background:blue;
color:#ffff;
font-family:sans-serif;
font-weight:400;
text-transform:uppercase;
cursor:pointer;
}
.button {
background-color:black;
border:black;
color:white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor:stateblue;
}
.button1 {
background-color:red;
border:black;
color:white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor:stateblue;
}
p.b
{
color:yellow;
font-size:70;
padding:0;
}
h2
{
color:blue;
font-size:70;
}
input[type=text] {
width:170;
padding: 12px 20px;
margin: 8px 0;
border-radius: 4px;
box-sizing: border-box;
border: none;
background-color:gray;
color: white;
}
input[type=password]{
width:170;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
border: none;
border-radius: 4px;
background-color:gray;
color:Black;
}
</style>
<script>
function validate()
{
var name=document.f1.username.value;
var pwd=document.f1.password.value;
var pwd1=document.f1.pwd.value;
if(name=="")
{
alert("name must be entered")
return false;
}
if(pwd=="")
{
alert("PASSWORD must be entered")
return false;
}
if(pwd1=="")
{
alert("CONFIRM PASSWORD must be entered")
return false;
}
if(pwd!=pwd1)
{
alert("password not matched")
return false;
}
}
</script>
</head>
<body>
<marquee><h2>TECH-A-THON 2019</h2></marquee>
<form name="f1" onsubmit="return validate()" action="student.php" method="POST">
<center>
<div id="login-box">
<h1>STUDENT</h1><br>
USERNAME<input type="text" name="username"><br>
PASSWORD<input type="password" name="password"><br>
<input type="submit" name="button" value="login"><br></form>
</center>
</body>
</html>