Zend - The PHP Company




Code Gallery: animachine


PHP Input Filter  

Type: class
Added by: animachine
Entered: 22/03/2005
Last modified: 03/12/2004
Rating: - (fewer than 3 votes)
Views: 8245
Filter out unwanted PHP / Javascript / HTML tags. This class can filter input of stray or malicious PHP, Javascript or HTML tags and to prevent cross-site scripting (XSS) attacks. It should be used to filter input supplied by the user, such as an HTML code entered in form fields. I have tried to make this class as easy as possible to use. You have control over the filter process unlike other alternatives, and can input a string or an entire array to be cleaned (such as $_POST).




Search