On Monday, March 4, 2002, at 02:25 AM, Rasmus Lerdorf wrote:
> Do a phpinfo() and check to see if you perhaps have a cookie with the
> name "id" set with the value "1". If your look at variables_order in
> your
> php.ini file, you will see that cookie data will override get-method
> data.
>
Do a phpinfo() and check to see if you perhaps have a cookie with the
name "id" set with the value "1". If your look at variables_order in your
php.ini file, you will see that cookie data will override get-method data.
To force a read from the GET data, use $_GET['id'] instead of $id.
-Rasmus
Ive just found a rather weird bug that im experiencing. Im running PHP 4.1.2
with Apache 1.3.23 on Linux Redhat 7. When ever I try and use variable $id
it always has a value of 1 no matter what. It only does it if its in a get,
think a post too. I can hard code it in a script and itll have a corre
3 matches
Mail list logo