I have a function that I call with ?clear-cart
appended to the end of my page; as you can probably guess, this function clears the user's cart.
I call it like this
<a href="?clear-cart">Clear Cart</a>
Which works great (in that it loads the same page, but now the cart is cleared), except that the URL in the address bar now reads
http://test.local/cart?clear-cart
Is there anyway to call ?clear-cart
but have the URL return without the parameter? (Hide it from the user, since I'm only using it for an internal function call??)