This one is my actions page.
<? include('dbinfo.inc.php'); ?>
<?
//right here is where it checks everything. If I add an echo after the checks it says something is missing when nothing is.
if($vin=='' || $year=='' || $make=='' || $model=='' || $color=='' || $transmission=='' || $miles=='' || $price=='' || $engine=='' || $driveshaft=='' || $doors==''){
?>
<? include('hiddencode.php'); ?>
<? include('top.php'); ?>
<? include ('left.php'); ?>
<table width="80%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" background="images/shadowcar.jpg">
<tr>
<td height="475" width="100%" valign="center">
<table width="100%" height="231">
<tr>
<td><table width="100%" border="0">
<tr>
<td height="110"><p><font size="1" face="Tahoma"><strong>You fucked up the form G. <a href="addcar.php">Try again foo!</a></strong></font></p>
</td>
</tr>
</table></td>
</tr>
</table> </tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td height="50" colspan="2">
<div align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="/images/bar3.gif" height="21">
</td>
</tr>
</table><? include('bottom.php'); ?>
<?
} else {
include('dbinfo.inc.php');
$query=mysql_query("SELECT * FROM vehicle WHERE vin='$vin'");
$rows = mysql_num_rows($query) or die(mysql_error());
if($rows > "0"){
?>
<? include('hiddencode.php'); ?>
<? include('top.php'); ?>
<? include ('left.php'); ?>
<table width="80%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" background="images/shadowcar.jpg">
<tr>
<td height="475" width="100%" valign="center">
<table width="100%" height="231">
<tr>
<td><table width="100%" border="0">
<tr>
<td height="110"><p><font size="1" face="Tahoma"><strong>That VIN is already in the DB foo. Someone fucked up hardcore man!</strong></font></p>
</td>
</tr>
</table></td>
</tr>
</table> </tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td height="50" colspan="2">
<div align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="/images/bar3.gif" height="21">
</td>
</tr>
</table><? include('bottom.php'); ?>
<?
} else {
mysql_query("INSERT INTO vehicle (vin, year, make, model, color, transmission, miles, price, engine, driveshaft, doors, extras, image)
VALUES ('$vin', '$year', '$make', '$model', '$color', '$transmission', '$miles', '$price', '$engine', '$driveshaft', '$doors', '$extras', '$image')") or die(mysql_error());
?>
<? include('hiddencode.php'); ?>
<? include('top.php'); ?>
<? include ('left.php'); ?>
<table width="80%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" background="images/shadowcar.jpg">
<tr>
<td height="475" width="100%" valign="center">
<table width="100%" height="231">
<tr>
<td><table width="100%" border="0">
<tr>
<td height="110"><p><font size="1" face="Tahoma"><strong>Werd
homie. Your shit worked!</strong></font></p>
</td>
</tr>
</table></td>
</tr>
</table> </tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td height="50" colspan="2">
<div align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="/images/bar3.gif" height="21">
</td>
</tr>
</table>
<? include('bottom.php'); ?>
<?
}} ?>
Thanks to everyone in advance.