lost querystring

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
webweber
Forum Newbie
Posts: 7
Joined: Wed Aug 13, 2003 11:52 pm

lost querystring

Post by webweber »

I'm doing a page refresh/redirect which usually works fine, but in some Browsers/OS the querystring seems to get plain lost.

I'm using
$header = $GLOBALS[REDIRECT_QUERY_STRING];

and append it to the URL like someFile.php?$header

A user of Windows 2000 and Internet Explorer Version 6.0.2800.1106 reports that she just gets someFile.php, without querystring.

What is the safe way that will work on all systems / in all browsers?

Thanks in advance!

Andreas Weber
http://www.motiondraw.com
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Wont $_SERVER['REQUEST_URI'] help? Personally never used REDIRECT_QUERY_STRING, so it's just a thought.
webweber
Forum Newbie
Posts: 7
Joined: Wed Aug 13, 2003 11:52 pm

Post by webweber »

JAM,

Thanks for your reply!
I made several changes and now it seems to work.
As I can't simulate the conditions in which the problem arose on the user's machine, I can't really tell wether using $_SERVER['REQUEST_URI'] made the difference. But as long as it is fixed now...

Andreas Weber
motiondraw.com
Post Reply