Jump to content

[SOLVED] include stuff...


alen

Recommended Posts

Hi there!

 

I have this simple include script,

 

<?PHP                   
$incpath = "include";
$default = "index"; 
$getarray = "side"; 
$filendelse = "php";

if (isset($_GET[$getarray]))
{
    include_once ("$incpath/".$_GET[$getarray].".$filendelse");
}
else
{
    include_once ("$incpath/$default.$filendelse");
}        
?> 

 

Well, you can probably see what it does. The links are as simple as this, index.php?side=page - how can I make it be something like this, index.php?side=test&id=whatever or something like that... How can I play with this script? Are there any guides or something on the net which explains include basics? And I donæt mean php.net

Link to comment
https://forums.phpfreaks.com/topic/38228-solved-include-stuff/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.