Re: 4.2 new GLOBALS question
| From: | Uchendu Nwachukwu | Date: | Fri, 26 Apr 2002 10:32:14 +0000 |
| Subject: | Re: 4.2 new GLOBALS question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94720@lists.php.net to get a copy of this message | ||
Try simply changing '$HTTP_GET_VARS' to '$_GET'.
so..
$start = isset($_GET['s']) ? $_GET['s'] : '';
--
Uchendu Nwachukwu
newsreply AT unndunn DOT com - www.unndunn.com
"Jeff Lewis" <jeff@hyrum.net> wrote in message
news:00b101c1ecaf$2f429850$0100a8c0@cr983033a...
> Excuse me, you're right. I was using this include as a "preprocess" step
as
> I was using ; to seperate arguments in the query string like this
> index.php?s=something;t=thing
>
> The preprocess step was breaking them apart and then I was doing this:
>
> $start = isset($HTTP_GET_VARS['s']) ? $HTTP_GET_VARS['s'] : '';
>
> Then back in index I did a if ($start == "somevalue")
>
> However, with 4.2, the $start is no longer populated.
>
> If I add an echo $start; right after the include, in 4.1.2 and below, it
> would echo the value of $start but now it keeps turning up empty.
>
> Jeff
> ----- Original Message -----
> From: "John Holmes" <holmes072000@charter.net>
> To: "'Jeff Lewis'" <jeff@hyrum.net>;
> <php-general@lists.php.net>
> Sent: Thursday, April 25, 2002 10:13 PM
> Subject: RE: [PHP] 4.2 new GLOBALS question
>
>
> > > I am working on an odler script which loads up in index.php and a URL
> > is
> > > passed usually like index.php?s=something
> > >
> > > Now, around line 10 of index.php I do an include that pulls the value
> > of s
> > > via HTTP_POST_VARS and then I dump it into $start.
> >
> > What do you mean you "dump it into $start"?? Where is $start coming
> > from? Also, if you are using index.php?s=something, then 's' will be in
> > HTTP_GET_VARS or _GET ...not POST.
> >
> > ---John Holmes...
> >
> >
> >
> >
>
>