Page 1 of 1

Argh - Appending to $_GET query across the board

Posted: Sun Aug 08, 2004 10:06 pm
by LonelyProgrammer
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:

Code: Select all

switch ($_GETї"action"];
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!

Posted: Sun Aug 08, 2004 11:15 pm
by infolock
yeah, insert it into a database and just query it. lol, other than that, sorry man, but that's the hell of development.

Posted: Sun Aug 08, 2004 11:59 pm
by feyd
could stash it in a session, if the value of the "setting" changes..