Re: User loggin

From: Date: Thu, 17 Apr 2003 17:15:11 +0000
Subject: Re: User loggin
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-19469@lists.php.net to get a copy of this message
header( "Location: menu.php" ); //this will redirecct you wherever John "Javier Poot" <jpoot@royalresorts.com> wrote in message news:3E9EC737.9050801@royalresorts.com... > Hi, > I have a login page where users get access to my app. > When an user is authenticated how can I load other page? > > .... > login.html code here > .... > <? > ..... > ..... > $sql = "select count(*) as FCOUNT from system.USERS where FUSER = > '$fuser' and FPASSWORD = '$fclave' "; > $stmt = OCIParse($db_conn, $sql); > if (OciExecute($stmt) && OCIFetch($stmt) && > OCIResult($stmt,"FCOUNT")=="1" ) > { > //a valid user > > //I WOULD LIKE REDIRECTING TO "MENU.PHP" HERE > > } > else { > print "Invalid user or password"; > } > > ?> > > is there another way to do this? > > Thanks. >

« previous php.windows (#19469) next »