[SOLVED] Querystring mystery!

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
JamesManke
Forum Newbie
Posts: 4
Joined: Thu Jul 08, 2004 12:10 am

Querystring mystery!

Post by JamesManke »

Hey there, I have just upgraded to easyphp 1.7 from 1.6 and am having trouble with querystrings. Its almost like it doesn't reconize a querystring. Link goes to the first part of the url and leaves the string out. Is there a setting in the php.ini file that needs to be changed in order to read querystrings?
Thanks for any advice you can give me :)
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Maby its not easyphp ?! And if it is maby its a bug, which needs to be reported to them
JamesManke
Forum Newbie
Posts: 4
Joined: Thu Jul 08, 2004 12:10 am

Post by JamesManke »

This is a possibility I guess. Seems to me that that would be a pretty BIG bug if that were the case as a good part of linking pages includes querystrings. Its sends the query string over BUT with empty values. It may be noted that I have Globals turned On in the php.ini file.
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

When you say "it sends them with empty values" do you mean the values are missing from the url or that your 'receiving script' reports them as empty?
If it's the latter, then post an example of where you're trying to get at the query var.
JamesManke
Forum Newbie
Posts: 4
Joined: Thu Jul 08, 2004 12:10 am

Post by JamesManke »

Link on homepage...
content.php?text=yes&id=32

When I echo the query on content.php page it reads content.php?text=&id=
The values are not passing to the next page. I would post an example but it seems to
be a server side error. I am almost convinced that it has something to do with the ini
settings as I didn't have a problem using querystrings with version 1.6
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

what do you mean when you echo

content.php?text=yes&id=32 on content.php it comes out as

content.php?text=yes&id=

Do you mean you are echo'ing the vars in the URL?

I know this is a longshot but try

echo $_GET["id"]; on content.php
JamesManke
Forum Newbie
Posts: 4
Joined: Thu Jul 08, 2004 12:10 am

Post by JamesManke »

Solved, the problem was in the php.ini as I suspected. It was set to error_reporting(0); when it should have been set to error_reporting = none.
Phenom - I meant when I echo'd (print) the query on the second page it showed Empty values in the querystring. I may not be explaining myself correctly as I am very new to PHP. Thanks for all the insight guys, muchly appreciated:)
Post Reply