-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudent_registration.php
More file actions
81 lines (66 loc) · 2.05 KB
/
student_registration.php
File metadata and controls
81 lines (66 loc) · 2.05 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
<head>
<title>Registration Form</title>
<?php session_start();?>
<style>
body {
width: 100vw;
height: 90vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-family: sans-serif;
font-size: 16px;
background-color: #F0F8FF;
}
input{
width: 100%;
padding: 10px , 20px;
font-size: 1 rem;
margin: 15px 0;
box-sizing: border-box;
border: 3px solid salmon;
border-radius: 5px;
}
input[type="submit"]{
width: 100%;
padding: 20 px 20 px;
border: none;
background-color: red;
color: white;
padding: 10px;
cursor: pointer;
border-radius: 50px;
}
</style>
</head>
<body>
<h1 >Sign Up</h1>
<form name = "form1" method = "post" enctype = "multipart/form-data" >
<label>Name :</label>
<input type = "text" name = "reg_name" value = "" required/>
<br>
<label>NID:</label>
<input type = "text" name = "nid" value = "" required/>
<br>
<label>Hospital Name:</label>
<select name="Hos_name" required/>
<option >Hospital Names</option>
<?php
$con = mysqli_connect('localhost','root','','COVID');
$sql = "select name from HOSPITAL_INFO";
$result = mysqli_query($con, $sql);
$row = mysqli_num_rows($result);
while ($row = mysqli_fetch_array($result)){
echo "<option value='". $row[0] ."'>" .$row[0] ."</option>" ;
}
?>
</select>
<br>
<br>
<label>Password:</label>
<input type = "password" name = "reg_pwd" value = "" required/>
<input type="submit" name = "login" value="Login">
</form>
</body>
<?php include 'student_registration_backend.php';?>