?php ob_start(); $loginUser='yes'; include("header.php"); $msg=""; include("includes/connect.php"); if(isset($_REQUEST['h1'])) { extract($_REQUEST); $ftUserPwd=base64_encode($ftUserPwd); $sqlchk="select * from tb_users where ftUserName='$ftUserName' AND ftUserPwd='$ftUserPwd'"; $qrychk=mysql_query($sqlchk); $reschk=mysql_fetch_array($qrychk); $numchk=@mysql_num_rows($qrychk); if($numchk==0) { $msg="Invalid User"; } else { session_start(); $_SESSION['user']='user'; $_SESSION['fnUserId']=$reschk['fnUserId']; $_SESSION['id']='U'.$reschk['fnUserId']; header("location:blog_allresults.php"); } } ?>
Login Form
User Name :
Password :
  Forgot Password?