This video shows a really basic implementation of secure form input with PHP. If you need more, I recommend you to visit phpsecurity.org or read the companion book by O'Reilly. What's more, you should consider the possibility of using PHP filters, which perform some validation tasks saving you a lot of time and code.
Nice video. Can you explain better (with text) what this filter do? thanks
Hi Gabriele!
The video is not mine. Anyway, PHP filters basically filter data input following certain patterns. For example, to filter an email address they compare the input with the RFC format of an email address. This video, instead, follows a string filtering approach which is very simple (and not efficient). As I said above, follow the links provided, and you'll find a lot of information. HTH :-)