tanveer Posted January 28, 2009 Share Posted January 28, 2009 HI all, I want to know is it possible to link pages with only a id value. Say, I have 4/5 php pages where index.php is def. So in a hyperlink if I link any of the php pages then in browser it shows the name of that php page like http://x.com/page1.php But I do not want to view the php file name in url and trying to show it like http://x.com/index.php?id=1 so in id 1, 2,3, ..will linked to php pages which will open. Hope I made myself clear. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/142740-how-to-show-pages-without-name-like-httpxcomindexphpid4/ Share on other sites More sharing options...
dezkit Posted January 28, 2009 Share Posted January 28, 2009 <?php $id = $_GET["id"]; if($id == "1"){ include("1.php"); } if($id == "2"){ include ("2.php"); } ?> Is this what you mean? Link to comment https://forums.phpfreaks.com/topic/142740-how-to-show-pages-without-name-like-httpxcomindexphpid4/#findComment-748232 Share on other sites More sharing options...
tanveer Posted January 28, 2009 Author Share Posted January 28, 2009 Thanks a lot. Link to comment https://forums.phpfreaks.com/topic/142740-how-to-show-pages-without-name-like-httpxcomindexphpid4/#findComment-748278 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.