Tony Pearce
asked on
PHP Sanitize GET
Hi,
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.
Thanks
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.
Thanks
ASKER
Kind of, what i need to do is redirect if any bad chars are detected
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if($_GET['urlvariable']){
header ('Location: ' . "http://mysite.com");
}