I have a URL in which a querystring is produced by a PHP script. Various values are displayed in the querystring.
Basically, I need to remove a specific value from the query string when a visitor clicks on a link or a 'remove' button.
So, the querystring looks like this:
http://www.foo.com/script.php?bar1=green&bar2=blue
But when a link or 'remove' button is clicked by a user, bar1=green
is removed, and the visitor is directed to the following URL:
http://www.foo.com/script.php?bar2=blue
I thought this would be easy using basic HTML with a form or anchor but I haven't been able to do it so far.
Just so you know, i do not have access to the code on the PHP script itself; it is hosted remotely and is called to my webpage by a PHP wrapper using an iframe.
Any suggestions greatly appreciated.
Many thanks,
Matt