Re: passing variables between php pages
| From: | Kirk Babb | Date: | Thu, 09 May 2002 03:03:03 +0000 |
| Subject: | Re: passing variables between php pages | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96748@lists.php.net to get a copy of this message | ||
I'm new to this as well, but have learned defining globals is not good
practice. Avoid this if possible. Write your scripts so that you do not
need to do this.
-Kirk
"Paras Mukadam" <parasmk@yahoo.com> wrote in message
news:20020509023800.64093.qmail@pb1.pair.com...
> I am a newbie to PHP, but have a doubt in mind. Can't we define some
global
> variables (in php.ini or anywhere) and use them in this case ?
>
> --Paras.
>
> "Austin Marshall" <amars@pdq.net> wrote in message
> news:3CD9ACBC.8020503@pdq.net...
> > Simpler? not really... there are several ways of passing information fro
> > mone script to another, whether it's via the traditional tried and true
> > POST and GET methods or via cookeis or sessions, or storing information
> > in files or a database. No you don't have to use POST or GET but they
> > will be the easiest most common way.
> >
> > Baldey_uk wrote:
> > > Hello all,
> > >
> > > If i want to pass variables from one php page to another do i have to
> use
> > > the POST or GET html methods or is there a simplier way? What i am
> wanting
> > > to do is take input from a html form, pass those as variables to a php
> page
> > > (which i have done), do a couple of if or else operations and then
pass
> > > those same variables onto different php pages. Thanks for any help in
> > > advance!
> > >
> > > Cheers From
> > >
> > > baldey_uk
>
>
>