I posted my first one but
I kind of updated it to this:
<html>
<body>
<?php
if ($submit)
{ // form processor
$db = mysql_connect('localhost', "scholarships", "michael219");
if (!$db) { echo "Error connecting to the database"; exit; }
// mysql_select_db("usaa-scholarships_org-testdb",$db);
$sql = "INSERT INTO tbl_test (firstname ='$firstname')";
//$sql = "INSERT INTO tbl_test (lastname = '$lastname')";
echo "<P>$sql</P>";
mysql_close($dbconn);
// $result = mysql_query($sql);
echo "Thank you! Your Information Has Been Entered.\n";
?>
//} else{
// display form
// <form method="post" action= "<?php echo $PHP_SELF; ?>">
// First Name:<input type="Text" name="firstname" value ="<? echo $firstname ?>"><br>
// Last Name:<input type="Text" name="lastname"><br>
// <input type="Submit" name="submit" value="Enter information">
//</form>
</body>
</html>
I tried to isolate the problem by commenting out phases of it. Probably not a smart move but I hoped it would show me my error. This one only uses 2 fields and is a test daabase that I made up. The other one is the actual database, but if I can get this one running I can hopefully translate it into the other one. I don't need any fancy stuff just grab the info witht the form then sock the info into the DB.
Thanks guys.