Forum Moderators: coopster
Could you pleas advise on how do I best make dynamic addresses like filename.php?id=10 etc.
I just switched to a new filing system but I still have six urls within GG results which should respond to filename.php?id=10 and so on.
My server doesn't support $_GET so I am thinking of a new way to make this.
Ideally, I would have six variables containing the body text and then just display the appropriate variable. Somehow I cannot figure out how.
All help appreciated!
Thanks
if (in_array($_GET['id'], $myselection)) {
include ($_SERVER['DOCUMENT_ROOT'] . '/source/' . $_GET['id'] . '.php');
}
[/PHP]
21, 22, 23, 24 are page IDs that are still in GG results. It doesn't work. It never does if $_GET is involved. As I gather from my support they doesn't allow globals.
echo $_GET['test'];
>>As I gather from my support they doesn't allow globals.
I'd imagine they mean "register globals [us2.php.net]" which is something different.