I'm looking for people to suggest new ways (or just how they do it) for protecting their forms for different types of inputs.
I'm talking database protection, so stop people from injecting bad code.
Input types:
Need some fresh ideas as am looking to go back and review all the forms I've made on different sites over the years, & improve performance, allow extra characters etc.
I'm talking database protection, so stop people from injecting bad code.
Input types:
- Username - I usually just limit the user to numbers and letters, strip anything else with preg_replace
- Password - Just md5?
- Comments Box - What about if I want it to display HTML as plaintext when I pull the values back out of the database? Normally just htmlspecialchars it with ENT_QUOTES.
- Anything else you can think of!
Need some fresh ideas as am looking to go back and review all the forms I've made on different sites over the years, & improve performance, allow extra characters etc.
Last edited:






