For the script above, your index.php will include JUST that script.
Your main page will be main.php, and it willb e included into index.php as if index.php was the actual main page. If you get what I mean... hehe
So when you type click index.php?state=whatever, it'll check if there's a page in the folders includes/php/state/<name>.php--if it doesn't exist, it'll go back to the MAIN.php.
@d_brandusaauthorAug 09.2004 — #I just wanted it to pull one include, I didn't need all of that.
The reason is, I have a flash us map, whatever state they click on, I want the "state" id to be read to include info per state, the file will exist, I'm not worried about that, i just want it to pull and place the state info in the url.
And you can't see the security risk in there? I would recommend you do _some_ sort of checking on the input before you blindly drop it into an include statement, at least. file_exists() is certainly better than nothing.
(Either that, or give me the URL of the page you put *that* code on...heh)