Professional Documents
Culture Documents
Management Example
Management Example
php
include 'dbinfo.php' ;
?>
<html>
<title>Corporate Administration Login </title>
<body bgcolor="#000000">
<center>
<font color="#ffffff">
<p>CORPORATE ADMINISTRATION SYSTEM FOR DEPARTMENT MANAGERS</p>
<br /><br />
<b><p>SECURE LOGIN</p></b>
<br /><br />
<?php
//always start the session before anything else!!!!!!
session_start();
//connect to the db
}else{
$err = 'Incorrect SSN for Manager' ;
}
//then just above your login form or where ever you want the error to be
displayed you just put in
echo "$err";
}
echo "<html>";
echo "<head>";
echo "</head>";
echo "<body>";
echo "<form action=\"\" method=\"POST\">";
echo "<p>Employee Number:";
echo "<input name=\"ssn\" size=\"9\" maxlength=\"9\"/>";
echo "</p>";
echo "<input type=\"submit\" name=\"login\" value=\"Login\" />";
echo "</form>";
echo "</body>";
echo "</html>";
?>
</font>
</center>
</body>
</html>