heres the whole script if it helps someone figure this out... theres a whole header but i didnt include it.
<?
mysql_connect("localhost","filehunt_top","puma") or die (mysql_error()); //connect to db
mysql_select_db("filehunt_top") or die (mysql_error()); //select db
if ($submit) {
//username, password, email, site, url, description, in, out, date, ip
$in = 0;
$out = 0;
$date = 0;
$ip = $_SERVER['REMOTE_ADDR'];
$insert = "INSERT INTO sites (username, password, email, site, url, description, in, out, date, ip) values ('$username','$password','$email','$site','$url','$description','$in','$out','$date','$ip')";
mysql_query($insert) or die (mysql_error());
echo '<div align="center" class="arial12b">Your site was successfully added. Please place this link on your site: <b>http://top.filehunter.org/in.php?id='.$username.'</b></div>';
}
if (!$submit) {
?>
<form method="post" action="add.php">
<table width="335" border="0" cellpadding="3" cellspacing="0" class="list">
<tr>
<td height="21" colspan="4" bgcolor="#bd1515" class="arial0" style="border-bottom:0px;">Join FileHunter TopList... </td>
</tr>
<tr>
<td colspan="3" class="arial12b" style="border-bottom:0px; border-right:0px;"><div align="center" class="arial12b">
<div align="center">Username</div>
</div></td>
<td width="50%" style="border-bottom:0px;"><input name="username" type="text" class="arial12b" size="30" maxlength="30"></td>
</tr>
<tr>
<td colspan="3" class="arial12b" style="border-bottom:0px; border-right:0px;"><div align="center">Password</div></td>
<td width="50%" style="border-bottom:0px;"><input name="password" type="text" class="arial12b" size="30" maxlength="30"></td>
</tr>
<tr>
<td colspan="3" class="arial12b" style="border-bottom:0px; border-right:0px;"><div align="center">Email</div></td>
<td width="50%" style="border-bottom:0px;"><input name="email" type="text" class="arial12b" size="30" maxlength="30"></td>
</tr>
<tr>
<td colspan="3" class="arial12b" style="border-bottom:0px; border-right:0px;"><div align="center">Site Name </div></td>
<td width="50%" style="border-bottom:0px;"><input name="site" type="text" class="arial12b" size="30" maxlength="30"></td>
</tr>
<tr>
<td colspan="3" class="arial12b" style="border-bottom:0px; border-right:0px;"><div align="center">Site URL </div></td>
<td width="50%" style="border-bottom:0px;"><input name="url" type="text" class="arial12b" size="30" maxlength="30"></td>
</tr>
<tr>
<td colspan="3" class="arial12b" style="border-bottom:0px; border-right:0px;"><div align="center">Short Description </div></td>
<td width="50%" style="border-bottom:0px;"><input name="description" type="text" class="arial12b" size="30" maxlength="50"></td>
</tr>
<tr>
<td height="20" colspan="4" bgcolor="#bd1515" class="arial0" style="border-top:0px;"><div align="center">
<input name="submit" type="submit" class="arial12b" id="submit" value="Join Toplist">
</div></td>
</tr>
</table>
</form>
<? } ?>
</div></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>