Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
| Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 16th, 2003, 01:39 AM
Authorized User
 
Join Date: Jun 2003
Location: San Jose, CA, USA.
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Query String not working!!!!!!!

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
__________________
----------
~cmiller
 
Old December 16th, 2003, 12:30 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use $_GET['cat'].

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

Even more info:
  http://www.google.com/search?q=site:...ster%5Fglobals


Take care,

Nik
http://www.bigaction.org/




Similar Threads
Thread Thread Starter Forum Replies Last Post
query string not rewriting, bookmarks not working rocco50 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 February 1st, 2007 01:12 PM
Update Query Not Working Odifius BOOK: Beginning Access VBA 0 September 20th, 2006 11:33 AM
UPDATE query is not working Sujit Joshi Beginning PHP 1 July 6th, 2005 04:07 PM
ASP connection string not working codehappy Classic ASP Basics 2 May 18th, 2005 08:43 AM
Want to Strip Chars from a String - Not Working WebDevel Javascript How-To 2 January 10th, 2004 01:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.