Re: Global variable

From: Date: Thu, 18 Apr 2002 13:44:24 +0000
Subject: Re: Global variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93519@lists.php.net to get a copy of this message
Maybe you could use sessions like: session_start(); session_register('verified'); $verified=0 "Erich Kolb" <ekolb@randbreceivables.com> skrev i meddelandet news:20020417200658.35555.qmail@pb1.pair.com... > I have developed a simple login script. Right now it will check a submitted > username and password and verify it against a database. This part works > fairly well, however I want to know how to assign a variable that will pass > through to the next page(s) to do something like: > > if verified == 1 then {display the page} else {display error message} > > My apoligies on the syntax of the above, but hopefully you will get the > idea. > >

« previous php.general (#93519) next »