Re: Newbie Questionabout variables

From: Date: Sat, 25 May 2002 18:19:56 +0000
Subject: Re: Newbie Questionabout variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99248@lists.php.net to get a copy of this message
Not sure what your question is.... In the case "password" is not a variable but the value of the variable, while "admin" is the name of the variable. Variables passed by url is obtained by GET method, and in your script all vairables passed by GET method can be accessed directly. So, in following script, <? ..... print $admin; ..... ?> the result of print will be "password". If this is not the answer to your quesiton, pls clarify. Alex "Al" <news@ridersite.org> wrote in message news:20020525171117.67095.qmail@pb1.pair.com... > > I hope this posting is not a duplicate. I originally posted it yesterday, > but it doesn't show on the newsgroup for me. > > Apparently you can set a variable as part of a URL statement. For example: > www.company.com/index.php?admin=password. > > Where "password" might be a simple variable to test as a rudimentary > authorization password. > > I can't find anything like this on the php website or manual. > > Can someone point me in the right direction? > > Thanks.... > >

« previous php.general (#99248) next »