-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddd.php
142 lines (125 loc) · 4.1 KB
/
addd.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
<script language="javascript">
function validate()
{
var fname=document.reg.fn.value;
var in=document.reg.in.value;
var password=document.reg.pad.value;
var mm=document.reg.mm.value;
var dd=document.reg.dd.value;
var yy=document.reg.yy.value;
var gender=document.reg.g.value;
var blood=document.reg.blood.value;
var department=document.reg.department.value;
var email=document.reg.em.value;
var mobile=document.reg.mn.value;
if(fname=='')
{
window.alert("Please Enter Full name!");
document.reg.fn.focus();
return false;
}
if(in=='')
{
window.alert("Enter ID Number!");
document.reg.in.focus();
return false;
}
if(dd=='')
{
window.alert("Please Enter Day!");
document.reg.dd.focus();
return false;
}
if(mm=='')
{
window.alert("Please Select Month!");
document.reg.mm.focus();
return false;
}
if(yy=='')
{
window.alert("Please Enter Year!");
document.reg.yy.focus();
return false;
}
if(gender=='')
{
window.alert("Please Select Gender!");
document.reg.g.focus();
return false;
}
if(blood=='')
{
window.alert("Please Select Blood Group!");
document.reg.blood.focus();
return false;
}
if(department=='')
{
window.alert("Please Select Department!");
document.reg.department.focus();
return false;
}
if(email=='')
{
window.alert("Please Enter Email!");
document.reg.em.focus();
return false;
} if(mobile=='')
{
window.alert("Please Enter Mobile Number!");
document.reg.mn.focus();
return false;
}
}
</script>
</head>
<body>
<center>
<form method="POST" action="" name="reg" onSubmit="return validate()" enctype="multipart/form-data">
<center> <div class="fixed"><div class="title" align="center">ADMIN REGISTRATION</div><div class="content"><div class='menu'>FULL NAME:
  <input type="text" name="fn" /></div><div class='menu'>ID Number:   <input type="text" name="in" maxlength="10" size="12" /></div><div class='menu'>Password:   <input type="text" name="pad" minlength="4" size="10" /></div><div class='menu'>mobile number:   <input type="text" name="mn" maxlength="10" /></div>
<div class='menu'>Date Of Birth:   Date<input type="text" name="dd" maxlength="2" size="4" />Month<select name="mm">
<option> select mounth </option>
<option value="01">JAN</option>
<option value="02">FEB</option>
<option value="03">MAR</option>
<option value="04">APR</option>
<option value="05">MAY</option>
<option value="06">JUN</option>
<option value="07">JUL</option>
<option value="08">AUG</option>
<option value="09">SEP</option>
<option value="10">OCT</option>
<option value="11">NOV</option>
<option value="12">DEC</option>
</select>Year<input type="text" name="yy" maxlength="4" size="5" /></div><div class='menu'>Gender:   <select name="g">
<option >select Gender</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</div><div class='menu'>Blood Group :   <select name="blood">
<option >select Blood Group</option>
<option value="ab+">AB +ve</option>
<option value="ab-">AB -ve</option>
<option value="a+">A +ve</option>
<option value="a-">A -ve</option>
<option value="b+">B +ve</option>
<option value="b-">B -ve</option>
<option value="o+">O +ve</option>
<option value="o-">O -ve</option>
</select>
</div>
<div class='menu'>DEPARTMENT:   <select name="department">
<option >select Department</option>
<option value="CSE">CSE</option>
<option value="IT">IT</option>
<option value="EC">EC</option>
<option value="CIVIL">CIVIL</option>
<option value="MECHNICAL">MECHNICAL</option>
<option value="EEE">EEE</option>
</select>
</div>
<div class='menu'>Email:   <input type="text" name="em" /></div><div class='menu'>Photo:    <input type="file" name="fileToUpload" id="fileToUpload"></div></div><div class="title" align="center"><input type="submit" name="submit" value="ADD" />    <input name="submit2" type="reset" value="RESET" /></div>
</div>
</form></center>