MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/bosweb/b1705/absoluteresultstechnologies.net/public_html/public_html/getafairdeal/
File Upload :
Current < : /hermes/bosweb/b1705/absoluteresultstechnologies.net/public_html/public_html/getafairdeal/info.php

<?php 
	include_once('includes.php'); 
	include_once('displayUtils.php'); 

	if(!isset($dealerInfo[$_SESSION['tradeup']['selectedDealer']]))
	{
		header("location: index.php");
		exit;	
	}
			
	if(isset($_POST['fullname']))
	{
		//unset($_SESSION['tradeup']);
		foreach($_POST as $key => $val) $_SESSION['tradeup'][$key] = $val;
			
		header("location: success.php");
		exit;		
	}
?>
<?php include_once('header.php'); ?>
<script src="scripts/ajax.js" language="javascript"></script>
<script>
	
	function checkForm()
	{
		if(document.getElementById('fullname').value == "")
		{
			alert('Please tell us your name');
			return false;
		}
		else if(document.getElementById('mobile').value == "")
		{
			alert('Please tell us your mobile phone');
			return false;
		}
		else if(document.getElementById('email').value == "")
		{
			alert('Please tell us your email address');
			return false;
		}
		else
		{
			return true;
		}
		
	}
</script>
<style>
	.formTbl td {padding-bottom:2px;height:20px}
	.formTbl td input {width:160px}
</style>
<table cellspacing="0" cellpadding="0" style="width:100%">
	<tr>
		<td style="background-color:white;border:1px solid #707070">			
			<table cellspacing="0" cellpadding="0" style="width:100%;padding:10px;padding-left:0px;text-align:left;">
				<tr>
					<td></td>
					<td style="height:80px;vertical-align:middle">
						<font style="font-size:22pt;font-weight:bold;color:#636363;">Find your next vehicle now...</font>
					</td>
				</tr>
				<tr>
					<td style="height:50px;vertical-align:middle;padding-right:15px"><img src="images/pointer.jpg"></td>
					<td>
						<form method="POST" onSubmit="return checkForm()">
							<table cellspacing="0" cellpadding="0" style="width:100%">
								<tr>
									<td>
										<font style="color:#777">Tell us how we can contact you.</font>
										<br>
										<div style="background-color:#efefef;padding:15px;border:1px solid #ccc;width:540px">
											<table cellspacing="0" cellpadding="0" class="formTbl" style="width:100%">
												<tr>
													<td>
														<table cellspacing="0" cellpadding="0" class="formTbl" style="width:100%">
															<tr>
																<td style="font-weight:bold;color:#465681;">Full Name</td>
																<td><input type="text" style="width:300px" id="fullname" name="fullname" value="<?= $_SESSION['tradeup']['fullname'] ?>"></td>
															</tr>
															<tr>
																<td style="font-weight:bold;color:#465681;">Mobile Phone</td>
																<td><input type="text" style="width:300px" id="mobilePhone" name="mobilePhone" value="<?= $_SESSION['tradeup']['mobilePhone'] ?>"  onkeypress="return onlyNumbers(event);"></td>
															</tr>
															<tr>
																<td style="font-weight:bold;color:#465681;">Email</td>
																<td><input type="text" style="width:300px" id="email" name="email" value="<?= $_SESSION['tradeup']['email'] ?>"></td>
															</tr>
															<tr>
																<td colspan="2" style="padding-top:15px;font-size:8pt;color:#888">
																	Optional
																</td>
															</tr>
															<tr>
																<td style="font-weight:bold;color:#465681;">Address</td>
																<td><input type="text" style="width:300px" id="address" name="address" value="<?= $_SESSION['tradeup']['address'] ?>"></td>
															</tr>
															<tr>
																<td style="font-weight:bold;color:#465681;">Postal Code</td>
																<td><input type="text" style="width:300px" id="postalCode" name="postalCode" value="<?= $_SESSION['tradeup']['postalCode'] ?>"></td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</div>
									</td>
									<td style="vertical-align:middle">
										<center>
											<input type="image" src="images/submit.png">
										</center>
									</td>
								</tr>
							</table>			
						</form>
					</td>
				</tr>
			</table>
			<br><br>
		</td>
	</tr>
</table>
<br><br>

<a href="index.php">Go Back</a></center>
<?php include_once('footer.php'); ?>