ID: 15052 Updated by: daniel Old Summary: Reserved Variable Name "id" ? Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Variables related Operating System: WIn2k PHP Version: 4.0CVS-2002-01-15 New Comment:
instead of: search.php&id=1 try: search.php?id=1 Kind Regards, Daniel Lorch Previous Comments: ------------------------------------------------------------------------ [2002-01-15 12:16:54] [EMAIL PROTECTED] $id is not a reserved variable, and should be useable where-ever you code. You might find however that you have used id before in the script, so it is picking that variable, and you have a conflict. ------------------------------------------------------------------------ [2002-01-15 11:58:43] [EMAIL PROTECTED] Hi, I hope this is really a bug and I'm not too stupid: In a larger script I used to embed variables in links, like this: search.php?a=1&b&c=2 which worked perfectly. But when I used "id" as Variablename it always got lost, so what should be "search.php&id=1" became "search.php&id=ressource id #1". I looked for hours for the problem, than I renamed "id" to "it", and now the variables are transferred correctly and the program works.. So is id perhaps some kind of variable that is used by php internally ? I searched in the docus and the bug reports, but didn't find anything on it. ------------------------------------------------------------------------ [2002-01-15 11:56:22] [EMAIL PROTECTED] Hi, I hope this is really a bug and I'm not too stupid: In a larger script I used to embed variables in links, like this: search.php?a=1&b&c=2 witch worked perfectly. But when I used "id" as Variablename it always got lost, so what should be "search.php&id=1" became "search.php&id=ressource id #1". I looked for hours for the problem, than I renamed "id" to "it", and now the variables are transferred correctly and the program works.. So is id perhaps some kind of variable that is used by php internally ? I searched in the docus and the bug reports, but didn't find anything on it. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15052&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]