RE: [PHP] Re: Variabe != Value???
| From: | John W. Holmes | Date: | Fri, 16 May 2003 23:46:26 +0000 |
| Subject: | RE: [PHP] Re: Variabe != Value??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147995@lists.php.net to get a copy of this message | ||
> Hmm... I'm a bit suprised noone has mentioned those globals that seems
to
> be
> the problem in very many cases...
Well, his question implies that he has register globals on, so that's
probably not the problem. Regardless if they are on or not, it's going
to cause the same problem either way...
Actually, I bet if you printed $_GET['product_list&action'] you'd get
"editproduct" ...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> "César aracena" <lists@icaam.com.ar> skrev i meddelandet
>
> news:1025.200.70.121.168.1053056277.squirrel@www.icaam.com.ar...
> > Hi all,
> >
> > I just found a very strange thing inside my code. I tried to make a
> > standard GET link like:
> >
> > <a
> >
>
href=\"".$PHP_SELF."?product_list&action=editproduct&product_id=0001>EDI
T<
> /a
> >
> >
> > which should work right?.... WRONG!!!!
> >
> > when I try to recognize the "$action" variable it just goes through
> > without reading it... I checked my code for hours and every IF and
> ELSEIF
> > look fine. Now, if I take the "$action" variable away and justleaves
> > "editproduct", the code listen ok... Any ideas? maybe a reserved
> variable?