RE: [PHP] Global variable
| From: | Vladislav Kulchitski | Date: | Wed, 17 Apr 2002 20:36:40 +0000 |
| Subject: | RE: [PHP] Global variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93394@lists.php.net to get a copy of this message | ||
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.
Vlad
-----Original Message-----
From: Erich Kolb [mailto:ekolb@randbreceivables.com]
Sent: Wednesday, April 17, 2002 4:07 PM
To: php-general@lists.php.net
Subject: [PHP] Global variable
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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php