<html>
<head><title>Employee Added</title>
<?
//include stylesheet for formatting
include("stylesheet.php3");
?>
</head>
<body>
<?
// connection information
$hostName = "dbm2.itc.virginia.edu";
$userName = "mst3k";
$password = "secret";
$dbName = "mst3k_Inventory";
// make connection to database
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 "<b>Data submitted to database!</b><p>
First Name: $firstName<br>
Last Name: $lastName<p>";
// Close the database connection
mysql_close();
?>
<a href="addEmployee.phps"><font color="red">View the source</font></a>
</body>
</html>