Link to home
Start Free TrialLog in
Avatar of prileyosborne
prileyosborne

asked on

[PHP] $_GET data clear

I am creating a form that will work as a search form for a database, and I wanted to use get as the method for getting the information so that they could bookmark the searches.  The problem is that some of the residual data is left over from search to search.  

I can reset the headers on the page to only show the data that I want, but I was wondering if that was the most secure/best way to do this or if there is something else that people do to remove the extra data from the URL.

Thanks so much!
ASKER CERTIFIED SOLUTION
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just because they are sending you data that doesn't mean you need to process it.  You can always ignore the extra data that is coming in the request.
Avatar of prileyosborne
prileyosborne

ASKER

Oh, great link on Sessions.  So I can just unset the session every time I change the search. That works perfectly!  Thanks!