RE: [PHP-DB] About Global vars
| From: | Rick Emery | Date: | Tue, 16 Oct 2001 13:13:38 +0000 |
| Subject: | RE: [PHP-DB] About Global vars | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-13359@lists.php.net to get a copy of this message | ||
You can also use cookies, if you're using PHP 3, instead of PHP 4
-----Original Message-----
From: Russ Michell [mailto:r.j.michell@apu.ac.uk]
Sent: Tuesday, October 16, 2001 5:21 AM
To: George Lioumis
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] About Global vars
You can set global vars in php, but they have a slightly diffent meaning and
hence, effect that
other languages.
For your purposes you could use php's sessions, or pass the variable as a
hidden form field.
http://www.php.net/manual/en/function.session-start.php
Regards.
Russ
On Tue, 16 Oct 2001 11:50:29 +0300 George Lioumis <glioumis@adacom.com>
wrote:
> Good day everyone!
>
> Can we define global vars in PHP, so as to be able to pass vars easily
between .php pages?
>
> For example, how can I pass the guest_id of someone logged in to my site
in order for another page
> to "know" his guest_id?
#-------------------------------------------------------#
"Believe nothing - consider everything"
Russ Michell
Anglia Polytechnic University Webteam
Room 1C 'The Eastings' East Road, Cambridge
e: r.j.michell@apu.ac.uk
w: www.apu.ac.uk/webteam
www.theruss.com
#-------------------------------------------------------#
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net