-
Hi,
In some script, I need to reload the current page, but with an additional value after that url.
For example, the current page is
http://www.something.com/admin.php?where=category&id=2
And I want to reload the whole thing, but with an url like
http://www.something.com/admin.php?w...ory&id=2&del=1
But I don't exactly know which name-value pairs will already be stored in the url. I just want to add that extra del stuff.
How can I do that in PHP?
-
I did not have time to test this sorry, but try:
header("Location: $PHP_SELF?$QUERY_STRING&del=1");
-
Thx, I'll try it tomorrow.
</t>
-
Yeah, it works. Great.
Thanks, robp.