@ob_start();
session_start();
include_once 'include/connect.php';
include_once 'include/Form.php';
if($_SESSION['goto']=='')
{ if($_GET['goto']!='')
$_SESSION['goto']=$_GET['goto'];
else $_SESSION['goto']=$_POST['goto'];
}
print $_SESSION['GOTO'];
?>
$curform= new Html_form("login.php?actn=Login",'post','form1','','','chk_all');
$curform->start();
?>
if($_GET['actn']=="Login")
{
$logqry="select * from user where frlht_id='".$_POST['uname']."' and pass='".$_POST['passwd']."'";
//print "login sucessful
".$logqry;
$result=mysql_query($logqry) or die(mysql_error());
if(mysql_num_rows($result)==0)
{?>
}
else
{
$rs=mysql_fetch_object($result);
if($rs->flg=='N')
{
print "
New User ? "; print "Click here"; print " to Register | |
Existing Users, Enter your FRLHT Login Id and password. | |
"; print " | |
Please use your email-id as FRLHT login Id. | "; print "|
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" |