hello, i need your advice on sanitizing user input (get/post). Is there any best way (php script) to do this? please suggest any php regex... thank you
hi there, It depends on the type of data that you need to sanitize. try out the regexlib.com it is full of regex resource. regards, d_s
If you're looking for query sanitation, look for a DBAL (ie. Zend_Db, Doctrine); if you're looking for XSS protection, don't sanitize user input but escape output.
hi,thanks for the suggestion. i've been there but this site is not easy to navigate. Helo gray, Could you please be more specific? any example or url address? thanks