Skip to content
Advertisement

Tag: get

Add, change, and remove GET parameters from query string

Let’s say the current query string is the following I need a function which can add and remove several parameters from the query string. For example: should give So, not only should the function be able to add new parameters (eyes=2&fingers=10), but it should also change the ones which are already present (car=black => car=purple). All these new and changed

PHP check if array contains any key other than some whitelisted

I would like to check all keys of a global GET array and do something, if it contains keys, other than some whitelisted ones from an array. Let’s say the current url is: Just for better visualization: These GET parameters are all available in the global GET variable which looks something like this: The keys I accept and want to

PHP – hide url (GET) parameters

I have a link in my PHP/HTML like this: When users click on the link, the parameters are handled by a 3rd party website which log the users in seamlessly. Is it possible to hide/mask/camouflage the url so that users don’t see the parameters while still passing them over to the designated site? If no, how would you guys go

Advertisement