Re: GET variable unexpectedly assigned to session variable

From: Date: Thu, 10 May 2007 19:04:01 +0000
Subject: Re: GET variable unexpectedly assigned to session variable
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-254751@lists.php.net to get a copy of this message
Armando; First, you can just change these: $id = (integer)$HTTP_GET_VARS["id"]; $usr_typ = (integer)$HTTP_GET_VARS["typ"]; .... to: $id = $_GET['id']; $usr_typ = $_GET['typ']; Second, I see that you're using $row[] variables for your MySQL result sets.... but where and how are the $rs[] values populated? On 5/10/07, Robert Cummings <robert@interjinn.com> wrote:
On Thu, 2007-05-10 at 14:51 -0400, Armando Acosta wrote: Let's try to make a long story short. I realized that the server uses a different PHP configuration, specially: "register_globals" set to ON. I already got them to change this value to OFF... but this did not solve the problem. I will appreciate any help, suggestion, idea.... currently I am (honestly) clue less... Did they restart the webserver after changing the config? BTW, what's the point of abbreviating short words like "user" to "usr" and "type" to "typ"? Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107

« previous php.general (#254751) next »