if (IsSet($_GET['file']) && $_GET['file'] != "") {
$file = $_GET['file'];
}
else {
$file = "";
}
if ($file == "") {
include('content.box');
}
else {
$incl = $_GET['file'];
include("$incl.box");
}
I decided to do it like this and it doesn't give me any errors saying that 'file' doens't exist. Reason I used this is because I can quite easily understand what's going on here since it's rather basic I guess... and because like this I can use it again without going here and asking again 😉
Thanks guys!
What is actually the difference between $_GET and $HTTP_GET_VARS ? The manual isn't really clear about that imo.