<?

$hostName 
"dbm2.itc.virginia.edu";
$userName "mst3k";
$password "secret";
$dbName "mst3k_Inventory";

mysql_connect($hostName,$userName,$password) or die("Unable to connect to host $hostName");

mysql_select_db($dbName) or die("Unable to select database $dbName");

$query "INSERT INTO employees (firstName, lastName) VALUES('$firstName', '$lastName')";
$result mysql_query($query);
print 
"Data submitted to database!<p>
    FirstName: $firstName<br>
    LastName: $lastName<br>"
;

// Close the database connection
mysql_close();
?>

<a href="addEmployee.phps"><font color="red">View the source</font></a>