Re: About Global vars
| From: | Russ Michell | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: About Global vars | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-13354@lists.php.net to get a copy of this message | ||
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
#-------------------------------------------------------#