Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
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/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:45 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.