<?php
session_start('millsupgrade');
?>
<?php include_once('mysqlUtils.php'); ?>
<?php
if(isset($_POST['acode']))
{
$sql = 'SELECT * FROM millsupgrade WHERE prospect = "' . $_POST['acode'] . '"';
$re = mysql_query($sql);
if(mysql_num_rows($re) == 1)
{
$_SESSION['millsupgrade']['user'] = mysql_fetch_assoc($re);
header("location: form.php");
exit;
}
else
{
$_SESSION['millsupgrade']['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 $1,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['millsupgrade']['error'] ?>
<?php unset($_SESSION['millsupgrade']['error']) ?>
</td>
</tr>
<tr>
<td><input type="submit" value="Enter"></td>
</tr>
-->
<tr>
<td><input type="button" value="Register" onClick="location.href='form.php'"></td>
</tr>
</table>
</form>
</center>
<?php include_once('footer.php'); ?>