I need a php function that will go through all the POST and GET Variables and scan for XSS attacks ,sql injections etc and will exit with an error if it finds any such instances.
(It would need to filter against all types of sql injection
ie injection using quotes and without quotes
eg 1 - [url removed, login to view]' or 1
eg 2 - [url removed, login to view] union select password from admin )
Happy Bidding !