...

View Full Version : PHP_SELF and _GET variables



madshadow
12-22-2006, 05:08 AM
Hello all,

I am using the $_SERVER[PHP_SELF] variable in order to make my own statistics program with an MySQL database. The problem is that for some reason, PHP_SELF does not include _GET variables that are appended to the path name. Is there another method I should be using?

Thank you so much...

whizard
12-22-2006, 05:20 AM
Try this:



print $_SERVER['PHP_SELF'].$_SERVER['REQUEST_URI'];


HTH,
Dan

madshadow
12-22-2006, 05:24 AM
Dan,

Thanks, that worked perfectly. Very much appreciated!

whizard
12-22-2006, 05:25 AM
No problem, glad you got it worked out

:)

Dan



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum