Sarjax Posted October 20, 2010 Share Posted October 20, 2010 So I've searched for a few hours already, and decided to give in to asking on a forums. On the site I'm working on, I want the navigation to look like www.website.com/index.php?id=2 instead of www.website.com/contacts.htm Also, the way I did it before, I renamed my main home page as 'main.php' and when you go to the site, index.php will display what's on main.php, but will still show www.website.com/index.php?id=1. I've done it before a few years ago, but I lost the site and forgot how to do it. I'm pretty sure there's a if/else if statement that comes into play, but I don't remember. I hope this all makes sense. Thanks Link to comment https://forums.phpfreaks.com/topic/216326-indexphpid/ Share on other sites More sharing options...
ram4nd Posted October 20, 2010 Share Posted October 20, 2010 use get method and if else, for an example http://www.w3schools.com/PHP/php_get.asp Link to comment https://forums.phpfreaks.com/topic/216326-indexphpid/#findComment-1124279 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.