Results 1 to 1 of 1
Thread: $_GET without mod-rewrite?
Dec 9, 2005, 18:45 #1
- Join Date
- Jan 2004
- 0 Post(s)
- 0 Thread(s)
$_GET without mod-rewrite?
I'm working on a CMS and have a page at mysite/world/index.php in the head section:
$MyName = ($_GET['area']);
I'd like to know if it's possible to do this without mod-rewrite. I need to create URL's that contain slashes. For example, rather than append Arizona to my URL, I might append Arizona/History, and it's hard to figure out how to do this with mod-rewrite.
Suppose I break my link into two components, the root link and whatever I append, like this...
$Root = 'mysite/world';
$Append = '?';
Then I could change $_GET to something like this:
$_GET = $Root$Append
So if I type in the URL mysite/world/Arizona/History, $_GET would equal mysite/world/Arizona/History, with the appended portion (Arizona/History) matching a value in my database.
If this is a viable solution, can someone help me fill in the blanks? If not, is there another way to do it?