Here's the code:
<body leftmargin="0" topmargin="0">
<table width="100%" height="100%" border="0" cellspacing="1" cellpadding="0">
<tr align="left" valign="top">
<td height="93" colspan="2">
<?php include("../topframe.htm"); ?>
</td>
</tr>
<tr>
<td width="180" align="left" valign="top">
<?php include("../leftframe.htm"); ?>
</td>
<td align="left" valign="top"> <table width="95%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="009999"><img src="/images/usertools.gif" width="165" height="48"></td>
</tr>
<tr>
<td height="3" valign="bottom" colspan="2"><img src="/images/hline.gif" width="100%" height="1"></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<?php
require_once('../includes/phpstd.php');
$username=$_POST['username'];
$password=$_POST['password'];
connectDB();
$query="SELECT * FROM clients where username = '$username'";
$result=mysql_query($query,$conn) or die(mysql_error());
$line = mysql_fetch_array($result);
//if valid user
if (($username==$line['username']) and ($password==$line['password'])) {
$name=$line['firstname'];
echo "<H1>Welcome, $name</h1>";
} else { ?>
<script language="JavaScript">
<!--
window.location="login.php?v2e=failed";
//-->
</script>
<?
}
mysql_close($conn);
?>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<p><br>
</p></td>
</tr>
<tr align="center" valign="top">
<td height="90" colspan="2"> <div align="center">
<?php include("../bottomframe.htm"); ?>
</div></td>
</tr>
</table>
</body>
-Jay