Location: PHPKode > projects > NetLink > netlink_os/progress.php
<?php
include("db.php");

$dbh=mysql_connect ($host,$user,$pass) or die ('MySQL Error: ' . mysql_error());
mysql_select_db ($table); 

extract($_POST);
$sql="SELECT * FROM Accounts WHERE Username='$login';";
$rs=mysql_query($sql,$dbh);

$login=strtolower($login);
$pw=md5(strtolower($pw));

$row=mysql_fetch_array($rs);
$mysql_login=$row['Username'];
$mysql_password=$row['Password'];
if (($login==$mysql_login)&&($pw==$mysql_password))
{
 echo "<b>Successful Login!<br/><br/>";
 echo "Loading ";
 include("nl.php");
 echo "<hr width='200px' align='left'/>";
 echo "Welcome to ";
 include("nl.php");
 echo "<img src='Images/netlink.gif' alt='' align='left'/><br/><br/><br/><br/><br/><br/><br/><hr width='200px' align='left'/>";
 echo "Loading Content...<br/>\n";
 echo "Loading Images...<br/>\n";
 echo "<b>Loading Welcome Page....</b>\n";

 echo "<meta http-equiv='refresh' content='0; URL=main.php'/>";
}
else 
{
  echo "<body onload='user_focus()'>\n\n";
  echo "<script type='text/javascript'>\n";
  echo "function user_focus()\n";
  echo "{ document.forms[0].login.focus(); } \n";
  echo "</script>";
  echo "<span id='error'>Error!</span><br/><b>Incorrect Login</b>";
	include("login.php");
}

mysql_close($dbh);

?>
Return current item: NetLink