-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
43 lines (43 loc) · 1.63 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<div style="text-align:right">
<a align="right" href="requestAccount.php" type="button">Don't have an account yet? submit the information to create one here!</a>
</div>
<div style="text-align: center;">
<form method="post" action="performLogin.php">
<label for="username">Username:</label>
<input type="text" name="username" required>
<br>
<label for="password">Password:</label>
<input type="password" name="password" required>
<br>
<select name="selected_control_zone" required>
<option value="--select airport--">--select control zone--</option>
<?php
include("SQLconnect.php");
$SQL='SELECT airport FROM airports;';
$res = $conn->query($SQL);
$airportList = Array();
while($airport = $res->fetch_array()){
array_push($airportList, $airport[0]);
}
foreach($airportList as $airport){
echo ('<option value="'.$airport.'">'.$airport.'</option>');
}
$conn->close();
?>
</select>
<br>
<input type="submit" value="logn">
</form>
</div>
</body>
</html>