The best way for this is to use sessions.

What you do is you check the identity and if it's valid you create a
session with name 'validuser' or whatever the name you want. Then any
secure operations/actions along the script you'll check for this session
name if it exists. I can demonstrate how I did this on my application.


-----Original Message-----
From: Erich Kolb [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 17, 2002 4:07 PM
Subject: [PHP] Global variable

I have developed a simple login script.  Right now it will check a
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
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

PHP General Mailing List (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to