Passing PHP HTTP_GET_VARS unnamed?

michaelsanford

Translator, Web Developer
I'd like to be able to dynamically show the content on my site like:

index.php?main.html

Right now I'm stuck wtih
index.php?go=main.html

Is there a way to reference the $HTTP_GET_VARS without naming them?

Also, since index.php is one of my standard index files, can I just do http://path/?main.html

Thanks!

EDIT: I'd rather not explode the URL string and sift through it. I'm really only interested in knowing if you can reference HTTP_GET_VARS, ;)
 
I think you should be able to use $_GET or $_REQUEST as arrays...

You can also manually parse the QUERY_STRING...
 
Back
Top