Re: giving variable value in URL problem
| From: | Jason Wong | Date: | Sun, 16 Nov 2003 14:33:11 +0000 |
| Subject: | Re: giving variable value in URL problem | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169828@lists.php.net to get a copy of this message | ||
On Sunday 16 November 2003 13:31, Burak Delice wrote:
Please do not top-post, it makes replying in a coherent fashion *much* harder.
I've corrected it for you.
> "Chris Shiflett" <shiflett@php.net> wrote in message
> news:20031116013859.72734.qmail@web14307.mail.yahoo.com...
>
> > --- Burak Delice <bdelice@yahoo.com> wrote:
> > > http://localhost/menu.php?status=0 php return
> >
> > [snip]
> >
> > > if ($status==0) echo '"trying";
> >
> > if (!$_GET['status'])
> > {
> > echo '"trying";
> > }
> thanx Chris,
> this code is running on Web, is not on Local. and I did your way, it did
> not work
Could you explain exactly *how* it didn't work? With the code as it is above
you ought to get a parse error. If you've corrected the parse error, did you
then try printing out $_GET['status'] to see what it contains? And feed it
different values to check that it works or doesn't work for values other than
0 (zero)?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
I was playing poker the other night... with Tarot cards. I got a full house
and
4 people died.
-- Steven Wright
*/