Does anyone have a function for manipulating GET variables in a URL? I
want to be able to modify some parameters without affecting others.
An example of what I'm looking for:
Let's say the current url is:
I want to be able to run a function like:
$newurl = change_get($_SE RVER["PHP_SELF"],"page","6") ;
and end up with:
and then run:
$newurl = change_get($_SE RVER["PHP_SELF"],"theme","") ;
and end with:
and then even run:
$newurl = change_get($_SE RVER["PHP_SELF"],"action","logo ut");
and end with:
The order of the GET variables isn't important, of course.
I thought I saw a function that does just this in the user-supplied
comments in the documentation but I did not bookmark it and have been
unable to find it.
While were about it, is there any way to *completely* avoid GET
variables while still being able to use clickable links?
--
- Michael J. Astrauskas
want to be able to modify some parameters without affecting others.
An example of what I'm looking for:
Let's say the current url is:
I want to be able to run a function like:
$newurl = change_get($_SE RVER["PHP_SELF"],"page","6") ;
and end up with:
and then run:
$newurl = change_get($_SE RVER["PHP_SELF"],"theme","") ;
and end with:
and then even run:
$newurl = change_get($_SE RVER["PHP_SELF"],"action","logo ut");
and end with:
The order of the GET variables isn't important, of course.
I thought I saw a function that does just this in the user-supplied
comments in the documentation but I did not bookmark it and have been
unable to find it.
While were about it, is there any way to *completely* avoid GET
variables while still being able to use clickable links?
--
- Michael J. Astrauskas
Comment