<?php
session_save_path("/home/users/web/b557/sl.flyingcoachlimo/public_html/cgi-bin/tmp");
session_start();
if (!isset($_SESSION["verified"])) {
header ("Location: index.php");
exit();
}
// Connect to the database
include("incDBConnectAdmin.php");
// Determine if the user had submitted new data and update the database
if (isset($_POST["submit"])) {
$limoname = $_POST['limoname'];
$limoload = $_POST['limoload'];
$limodetails = $_POST['limodetails'];
$query = "INSERT INTO limos (eName , eLoad , eDetails ) VALUES ( '" . $limoname . "', '" . $limoload . "', '" . $limodetails . "')";
mysql_query($query) or die("<br>error");
echo "<br><h3 style=color:red>Limousine has been added</h3>";
}
?>
<link rel="stylesheet" href="../stylesheet.css" type="text/css" />
<form enctype="multipart/form-data" action="addnewlimo.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000000000" />
<table align="center" border="0" width="350">
<tr valign="top" height="25">
<td>
<h1>
www.LetUsDesign.it - Edit.it CMS v1.0.7
</h1>
</td>
</tr>
<tr>
<td>
<br/><br/>
Add a new limousine
<br/><br/>
Limo Name: <input type="text" name="limoname" /><br/>
Passenger Load: <input type="text" name="limoload" /><br/>
Details: <textarea name="limodetails" rows="5" cols="100"></textarea><br/><br/>
<input type="submit" name="submit" value="Add new limo" /><br/><br/>
<?php echo "<input type='hidden' name='pageID' value='" . $pageID . "'>"; ?>
<?php echo "<input type='hidden' name='pageSection' value='" . $pageSection . "'>"; ?>
</td>
</tr>
<tr>
<td>
<br/><br/>
<a href="main.php">Go Back To Main Menu</a>
<br/><br/>
<a href="logout.php">Logout of Page Editor</a>
</td>
</tr>
</table>
</form>
</body>
</html>