Get URL "?..." value without using a variable

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
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Get URL "?..." value without using a variable

Post by aceconcepts »

Hi,

Is it possible to "request" a single value from a url without specifying a variable name.

i.e. instead of requesting a variable from a url like: http://.../?id=23 can you get the value after "?" without using "id="

Hope its not too convoluted :D

Thanks
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Post by jmut »

you either ask for some mod_rewrite trick
or about $_SERVER['QUERY_STRING'] variable
Post Reply