Syas parse error on line 40. Line 40 is the close html tag? I'm confused. Line 1 starts below:
<html>
<body>
<?php
$submit = $POST['submit'];
$firstname = $POST['firstname'];
$lastname = $_POST['lastname'];
if ($submit == "Enter information")
{ // form processor
$db = mysql_connect('localhost', "scholarships", "michael219") or die("Error connecting to db: ". mysql_error());
mysql_select_db("usaa-scholarships_org-testdb",$db);
$sql = "INSERT INTO tbl_test (firstname, lastname) VALUES (".$firstname.", ".$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"><br>
Last Name:<input type="Text" name="lastname"><br>
<input type="Submit" name="submit" value="Enter information">
</form>
</body>
</html>
Any help would be greatly appreciated. Thanks, Melissa