PHP Day 11: Functions for Form Input Security
This six-minute video covers a couple security issues with HTML forms and how to make forms safer with a few simple PHP functions. There’s also a quick look at the pesky “magic quotes” option.
Links for PHP Day 11: Functions for Form Input Security
Magic quotes:
- PHP: Magic Quotes - An overview from the PHP manual.
- PHP: Disabling Magic Quotes - Also from the PHP manual, how to disable magic quotes.
Functions:
I came across plenty of other security stuff that’s a bit too advanced for me right now, like ways to validate the size of files uploaded through a form and that weird thing called “regular expressions”. So I have some light reading for tonight. ![]()



February 16th, 2007
Nice tips, thanks.
Greetings
January 29th, 2008
Your tutorials have been so incredibly helpful! I’ve been working with PHP and MySQL for awhile now, but I just started developing scripts and programs of my own. Your videos are friendly and to-the-point. But the best thing is that you’re learning as you go, and you face the problems other beginners (such as myself) are bound to encounter also.
July 31st, 2008
Another great one! PHP security is one of the most important lessons. So many people write insecure code.