<?php
session_start('upgrade');
header("location: form.php");
exit;
if(isset($_POST['acode']))
{
//$sql = 'SELECT * FROM derrickupgrade WHERE prospect = "' . $_POST['acode'] . '"';
//$re = mysql_query($sql);
if(strtoupper($_POST['acode']) == "KR48")
{
$_SESSION['upgrade']['user'] = array();
header("location: form.php");
exit;
}
else
{
$_SESSION['upgrade']['error'] = '* Invalid access code. Please try again.';
}
}
?>
<?php include_once('header.php'); ?>
<br>
<div style="font-size:12pt;">
<!--Please Enter the Access Code from the notice you are responding to in the box below.-->
Click below to register and receive a $2,000 savings voucher.
</div>
<br>
<center>
<form method="POST">
<table cellspacing="0" cellpadding="0" style="border:1px solid #aaaaaa;background-color:#eeeeee;width:300px;height:100px;color:#333333">
<tr>
<td>Access Code
<br>
<input type="text" name="acode" style="width:200px">
<br><font style="color:red;font-weight:bold"><?= $_SESSION['upgrade']['error'] ?>
<?php unset($_SESSION['upgrade']['error']) ?>
</td>
</tr>
<tr>
<td><input type="submit" value="Enter"></td>
</tr>
</table>
</form>
</center>
<?php include_once('footer.php'); ?>