ask $_GET

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Portnumbay
Forum Newbie
Posts: 14
Joined: Mon Jul 05, 2010 1:22 am

ask $_GET

Post by Portnumbay »

Hi masters..
I have a question..
Mostly i coding my web like one index and most of the rest page like (orders, product, about us) i attach them to the index page.. like :

Code: Select all

 <?php 
			if($_GET["link"]){
					 include($_GET["link"]);
					 }
					 else{
						 include("home.php");
					 }
		?>
for example index.php?link=product.php and so on..
My question.. is that ok using this method ? it help me alot using this method coz i don't need to design the same page only the data i call... but what i concern is that the url gonna be long... is it ok with SEO ? can i still make it with .htaccess (I am still learning with this one like make our link look like www.domain.com/order-blackberry-bold.htm)

thanks alot before
Post Reply