Re: Passing variables from script to script
| From: | Jason Wong | Date: | Wed, 11 Dec 2002 09:06:00 +0000 |
| Subject: | Re: Passing variables from script to script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127769@lists.php.net to get a copy of this message | ||
On Wednesday 11 December 2002 07:56, Stefan Hoelzner wrote:
> Hi folks,
>
> surely this question has already been answered many times before in this
> ng, but nevertheless:
So why don't you search the archives to read the answers!?!
> I want to pass variables from one .php to another
> .php script. But I do not want to use either the
> http://localhost/target.php?var1=test&var2=test2 nor the
> POST method. I would like to pass over general variables like usernames and
> passwords for several MySQL-connects; obviously it is not a good way to
> pass these vars via the mentioned ways.
>
> What else does PHP offer? Are there any other methods? Can I define these
> vars as some kind of "global variables" in any ini-file?
Use sessions.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
OS/2 must die!
*/