PHP Sanitize GET

I would like a block of PHP in the header of a page that recieves the input via a GET url string, I want to stop any encoded rubbish and forward to a page where I can give instructions.

Tony PearceAsked:
Who is Participating?
PranjalShahConnect With a Mentor Commented:
See the Sanitize Input section at
I think you want to redirect to a particular page if you receive an input via url, you can do

        header ('Location: ' . "");
Tony PearceAuthor Commented:
Kind of, what i need to do is redirect if any bad chars are detected
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.