<link rel="stylesheet" type="text/css" href="Login.css"/> </head> <body> <div id="header"> <h1>Railway</h1> <p>E-Ticketing Service</p> </div> <div id="signup"> <?php include "client.php"; $name = $_POST["name"]; $pass = $_POST["pass"]; $address = $_POST["address"]; $phone = $_POST["phone"]; $mail = $_POST["email"]; $client = new client(); if ($client->submit($name, $pass, $phone, $address, $mail)) { echo "Sign up completed"; echo "</br>"; $client->details($name); } else { echo "User with given information already exists"; echo "</br>"; } echo '<a href="index.html">Go to the home page</a>.'; ?> </div> </body> </html>
$class = $_SESSION["class"]; $var = 0; if (!isset($_SESSION['schedule']) && empty($_SESSION['schedule'])) { $_SESSION["schedule"] = $_GET['schedule']; } if (!isset($_SESSION['station']) && empty($_SESSION['station'])) { $_SESSION["station"] = $_GET['name']; } $station = $_SESSION['station']; $schedule = $_SESSION['schedule']; $client = new client(); $clientName = $client->getName($user); if ($client->exists($clientName)) { echo "<table style=\"border:1px solid black; border-collapse:collapse;\" width=\"1350\" height=\"100\"> "; echo "<th width=\"200\" bgcolor=\"#0000FF\">Customer Details</th>"; $client->details($clientName); if (isset($_POST['submit'])) { $_SESSION["seats"] = $_POST['seat']; $var = $_SESSION["seats"]; echo "Number of tickets : " . $var . "</br>"; $cost = $client->CheckBooking($schedule, $class, $var); } if (isset($_POST['sub'])) { $client->makeBooking($schedule, $class, $_SESSION["seats"], $date, $user); header('Location: CustomerDet.php'); } } ?> </div> <div>