question regarding var methods
Posted: Tue Mar 23, 2004 6:40 pm
Here`s what I`m trying to do.
My site consists of 2 parts: The content and the boxes. So say I have the content which is the index.php and I have a set of boxes which are included in the index.php code depending on a variable I pass to it like this:
/index.php?box=pc_links.php
or
/index.php?box=games_links.php
or
/index.php?box=tech_links.php
etc.
Each content page has its own boxes.
The problem is that if someone wants to he can change the querystring var $box to any other filename and the variable value will be changed so another box will be displayed. Is it any way to prevent this?
Note that I cannot use the post method since these come from links and I don`t want to have the box filenames hardcoded.
(Ok, I know, I`m not good at explaining things...)
My site consists of 2 parts: The content and the boxes. So say I have the content which is the index.php and I have a set of boxes which are included in the index.php code depending on a variable I pass to it like this:
/index.php?box=pc_links.php
or
/index.php?box=games_links.php
or
/index.php?box=tech_links.php
etc.
Each content page has its own boxes.
The problem is that if someone wants to he can change the querystring var $box to any other filename and the variable value will be changed so another box will be displayed. Is it any way to prevent this?
Note that I cannot use the post method since these come from links and I don`t want to have the box filenames hardcoded.
(Ok, I know, I`m not good at explaining things...)