Help with String (URI )Parsing
Posted: Wed Jul 30, 2008 12:13 am
so, I have a calendar script that has next and previous buttons.
I have dealt with how to generate the appropriate links for next and previous, but I want to include other GET data that may be in the address. In other words:
Say I request the URI and after a bit of work, I get the following:
page=blah2&month=January&color=red
I want to remove the month variable as such:
page=blah2&color=red
which will then allow me to add the correct month for the "next month" link to the end.
the method should also remove year= and day=
So, anyone have an idea of a nice way to do this?
I have dealt with how to generate the appropriate links for next and previous, but I want to include other GET data that may be in the address. In other words:
Say I request the URI and after a bit of work, I get the following:
page=blah2&month=January&color=red
I want to remove the month variable as such:
page=blah2&color=red
which will then allow me to add the correct month for the "next month" link to the end.
the method should also remove year= and day=
So, anyone have an idea of a nice way to do this?