$SelUserQry = "SELECT email, password, id, codematched, promo_code FROM users WHERE email='".mysql_real_escape_string($_POST['email'])."' AND password='".mysql_real_escape_string($_POST['password'])."'";
<form name="register" id="register" enctype="multipart/form-data" method="post" action="login.php">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<? if($Message!=""){?>
<tr>
<td align="left" class="arial_11_red"><?=$Message?></td>
</tr>
<? } ?>
<tr>
<td height="18" valign="bottom"><strong>Email Address:</strong></td>
</tr>
<tr>
<td><table width="240" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="8" align="left"><img src="images/box_left.jpg" width="8" height="20" /></td>
<td width="219" align="left" valign="top"><input name="email" type="text" class="box" id="email" style="padding-top:7px;" /></td>
<td width="11" align="left"><img src="images/box_right.jpg" width="3" height="20" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="18" valign="bottom"><strong>Password:</strong></td>
</tr>
<tr>
<td><table width="240" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="8" align="left"><img src="images/box_left.jpg" width="8" height="20" /></td>
<td width="219" align="left" valign="top"><input name="password" type="password" class="box" id="password" style="padding-top:7px;" /></td>
<td width="11" align="left"><img src="images/box_right.jpg" width="3" height="20" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="12"><a href="forgotpass.php" class="page-link">Forgot your password? <font color="red">Click here!</font></a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="left">
<input name="login" type="submit" id="login" value="Login" onClick="return valid();">
<? if($break == 1) { echo "<br /><br />"; } ?>
</td>
</tr>
</table>
<input type="hidden" name="HidSubmiLogin" id="HidSubmiLogin" value="0"></form>