Argh - Appending to $_GET query across the board
Posted: Sun Aug 08, 2004 10:06 pm
Hi,
The gist of my problem is. I have been writing code that uses the a variable in the GET query to determine which action to take, eg:
At the last moment, the client wanted me to add in something new (don't they always?) Basicially, it means appending another variable to the $_GET query. So instead of "main.php?action=something", now I have to to do "main.php?action=something&setting=somethingelse".
The question is - I have dozen of links scattered over five files that need to have the extra variable tagged in. Is there a fast way of doing it across the board? Setting the $_GET query beforehand? Or do I have add in the extra valuable manually? (Man, then I'll be a victim of my own signature line).
Many thanks in advance!
The gist of my problem is. I have been writing code that uses the a variable in the GET query to determine which action to take, eg:
Code: Select all
switch ($_GETї"action"];The question is - I have dozen of links scattered over five files that need to have the extra variable tagged in. Is there a fast way of doing it across the board? Setting the $_GET query beforehand? Or do I have add in the extra valuable manually? (Man, then I'll be a victim of my own signature line).
Many thanks in advance!