TheOmegaCode
Platinum Member
my querystring looks like this:
index.php?id=main
and my code looks like this:
<?php include('includes/' . $id . '.inc') ?>
so this SHOULD evaluate to main.inc, but it doesnt. the variable is empty and its just .inc
is there another way to get $id out of the querystring? i want my pages to be dynamic so it requests the correct include file, respective to the querystring.
index.php?id=main
and my code looks like this:
<?php include('includes/' . $id . '.inc') ?>
so this SHOULD evaluate to main.inc, but it doesnt. the variable is empty and its just .inc
is there another way to get $id out of the querystring? i want my pages to be dynamic so it requests the correct include file, respective to the querystring.