Jump to content

Destroying _GET array


jcanker

Recommended Posts

I want to be able to destroy any variables that may be passed in the URL as a GET variable. 

 

Would unset($_GET) achieve this or would I have to count up the array elements passed in the url and step through them in a for or while loop, destroying them?

 

In short, I need to have a quick and dirty function to call at the start of each page that no matter what any GET variable the user tries to pass in the URL is discarded before the script tries to do anything else.

Link to comment
https://forums.phpfreaks.com/topic/192878-destroying-_get-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.