start(); ?> ".$logqry; $result=mysql_query($logqry) or die(mysql_error()); if(mysql_num_rows($result)==0) {?> flg=='N') { print "
Sorry your account has not been activated..
Please reply our email to confirm your registration and activate your account.

Back"; EXIT; } else { $x=date('Y-m-d h:i:s'); $q="UPDATE user SET last_login='$x' WHERE frlht_id='".$_POST['uname']."' and pass='".$_POST['passwd']."'"; $r=mysql_query($q); session_register("auth_user"); $_SESSION['auth_user']=$rs->user_id; if ($_SESSION['goto']=="") $_SESSION['goto'] = $rs->reg_for; //print "i have logged in.. and wish to go to".$_SESSION['goto']; if($_SESSION['goto']=='hmrm') { unset($_SESSION['goto']); @header("location:../prakruti/"); } elseif($_SESSION['goto']=='faq') { unset($_SESSION['goto']); @header("location:../faq/view_faq.php"); } elseif($_SESSION['goto']=='envis') { unset($_SESSION['goto']); @header("location:../envis/"); //ON LINE //@header("location:../envis_temp/"); //OFF LINE } elseif($_SESSION['goto']=='query') { unset($_SESSION['goto']); @header("location:../query_form/"); } } } } print " "; print ""; print ""; print ""; print ""; print ""; print ""; print "

New User ?
"; print "Click here"; print " to Register
 
Existing Users,
Enter your FRLHT Login Id and password.
 
Please use your email-id as FRLHT login Id.
FRLHT Login Id :"; $curform->displaytext("uname",'',25,50,0); print "
Password :"; $curform->displaypassword("passwd",'',25,25,0); print "
Forgot Password

"; $curform->displaySubmit('Login','submit'); //$curform->displayHidden('goto',$goto); $curform->displayHidden('userid',$userid); print"
"; print ""; $curform->end(); ?>