-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuy1.php
More file actions
65 lines (55 loc) · 1.77 KB
/
buy1.php
File metadata and controls
65 lines (55 loc) · 1.77 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
<center>
<form style="" method="get" action="main.php">
<p>Source</p>
<select style=" weight:500px; height: 30px ; margin:10px;" name="s" required >
<option value="" selected="selected"></option>
<?php
include "config.php";
$sql = "Select name from station";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo '<option value="'.$row["name"].'">'.$row["name"].'</option>';
}
}
?>
</select>
<br>
<p>Destination</p>
<select style=" weight:500px; height: 30px ; margin:10px;" name="D" required>
<option value="" selected="selected"></option>
<?php
$sql = "Select name from station";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo '<option value="'.$row["name"].'">'.$row["name"].'</option>';
}
}
?>
</select
<br>
<p>
<label for="modlgn_username">No of Sit</label> <br>
<select style=" weight:500px; height: 30px ; margin:10px;" name="sit" required>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
</select>
</p>
<br>
<p>
<label for="modlgn_username">Select A Class</label> <br>
<select style=" weight:500px; height: 30px ; margin:10px;" name="cls" required>
<option value="1">Vip</option>
<option value="2">Normal</option>
</select>
</p>
<br><br>
<input type="submit" style=" weight:100px; height: 30px ; margin:10px;" name="Submit" value="Next">
</form>
</label>
</center>