Forum Moderators: coopster
I am using the index.php to control the content of the website and using php to add the different content.
So when I link to pages i will get this for the url
site/index.php?page=getinvolved/getinvolved.php Now I want to make it to display it like:
index.php/getinvolved/getinvolved.php
does this make sense I am not sure..
index.php?page=getinvolved/getinvolved.php
You can include it like this:
[url=http://us3.php.net/manual/en/function.include.php]include[/url]($_GET['page']);
*You want to VALIDATE the $_GET['page'] variable to make sure that it resides on your server, otherwise you are creating a security breach*
Also, here's a search [google.com] on the topic. :)
What I want to change is in the address bar it displays -> site/index.php?page=getinvolved/getinvolved.php
I would like it to display site/getinvolved/getinvolved.php
so it would change it i guess it would change dynamic url to look like a static
What you are looking for is mod_rewrite [httpd.apache.org], assuming you have Apache :)
You can get more help on this in the Apache Forum