-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex_.php
86 lines (69 loc) · 2.41 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
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Sign up Page</title>
<link rel="stylesheet" href="styleL.css">
<link rel="stylesheet" href="stylePC.css">
<link rel="stylesheet" href="style_.css">
<!-- Google Font -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap" rel="stylesheet">
</head>
<nav class="navbar container">
<div class="navbar__logo">
<h1>Wings</h1>
</div>
<!-- <img src="logowings.png" alt="Error"> -->
<div class="navbar__nav">
<ul class="navbar__menu">
<li class="navbar__item"><a href="Main.html" class="navbar__link">Home</a></li>
<li class="navbar__item"><a href="about.html" class="navbar__link">About</a></li>
</ul>
</div>
</nav>
<body>
<div class="center">
<h1 style="color: #151B54;">Passenger Details</h1>
<?php
$iterations=$_POST['Passenger'];
$from=$_POST['from'];
$to=$_POST['to'];
$Ddate=$_POST['Ddate'];
$class=$_POST['Class'];
$airpno=$_POST['Flight_No']; /*if airpno= AI 233 ,, making it AI_233*/
$delimiter = ' ';
$words = explode($delimiter, $airpno);
$airpno_1=$words[0];
$airpno_2=$words[1];
$airpno=$airpno_1."_".$airpno_2;
echo '
<form action = "index1_.php" method="post">
<br>
<input placeholder="Email for correspondence..." type="text" name="email" id="email" required>
<input placeholder="telephone..." type="text" name="telephone" id="telephone" required>
<input type="hidden" value='.$iterations.' name="people" id="people">
<input type="hidden" value='.$from.' name="from" id="from">
<input type="hidden" value='.$to.' name="to" id="to">
<input type="hidden" value='.$Ddate.' name="Ddate" id="Ddate"><br>
<input type="hidden" value='.$class.' name="class" id="class"><br>
<input type="hidden" value='.$airpno.' name="airpno" id="airpno"><br>
';
for($i = 1; $i<=$iterations; $i++)
{
echo '
<div class="tab">Passenger '.$i.' :<br>
<input placeholder="First name..." name="person['.$i.'][first_name]" >
<input placeholder="Last name..." name="person['.$i.'][last_name]">
</div><br>';
}
echo '
<input type="submit" value="Confirm Ticket" name="submitbutton">
</form>
';
?>
<br>
</div>
<script src="script1.js"></script>
</body>
</html>