Subject: Query String not working!!!!!!!
Posted By: cmiller Post Date: 12/16/2003 12:39:46 AM
Ok, I feel like a dolt.  I have a script that calls heavily on query string variables, but the query string isn't working.  Do I need to turn something on in PHP ini for them to work?

For example here's a sample string:

script.php?cat=5

Then when calling $cat, it comes up blank.

Here's the details:
Win 20000 (all updates)
IIS 5 or 6 (whatever is standard)
PHP 4.3.3 (EXE)

Everything else works, including MySQL, just not the damn query string.  I think I'm going crazy.

Ohh, just because I'm sure someone will end up asking these 2 questions:

#1, this works just fine on a UNIX machine, so it's not my script, it's gotta be the server.

#2, yes I did look at the manual and on google/yahoo and didn't find squat.

please someone help!

----------
~cmiller
Reply By: nikolai Reply Date: 12/16/2003 11:30:26 AM
Use $_GET['cat'].

More info:
  http://p2p.wrox.com/archive/beginning_php/2002-11/17.asp

Even more info:
  http://www.google.com/search?q=site:p2p%2Ewrox%2Ecom+register%5Fglobals


Take care,

Nik
http://www.bigaction.org/

Go to topic 7661

Return to index page 985
Return to index page 984
Return to index page 983
Return to index page 982
Return to index page 981
Return to index page 980
Return to index page 979
Return to index page 978
Return to index page 977
Return to index page 976