Query string

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
G-N
Forum Newbie
Posts: 1
Joined: Fri Dec 19, 2003 3:23 pm

Query string

Post by G-N »

This is hard to explain so bare with me here...

Is there a way to get the query string from a url, as in index.php?variable=data, without using the question mark?

Here are examples:
http://www.hyperdictionary.com/dictionary/word
http://www.hyperdictionary.com/dictionary/testtest
http://www.hyperdictionary.com/dictionary/hdg34/!g

A seperate page is generated for any text after "dictionary/" without using ?variable=

This makes for a much shorter url when using just one variable.
Can this be done with PHP?
User avatar
Derfel Cadarn
Forum Contributor
Posts: 193
Joined: Thu Jul 17, 2003 12:02 pm
Location: Berlin, Germany

Post by Derfel Cadarn »

Could you explain it a bit more? I don't seem to understand it...

==========================
" I may be daft, but I'm not blind."
==========================
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Post Reply