should I use both server.htmlencode and an SQL injection protection function for every text field and textarea that a visitor can enter info into?
An example would be a user registration form
I'm not sure it would be necessary to use HTMLEncode, it would depend on what you plan to do with the text I'd guess.
Definately do SQL injection protection on all your form fields before using them in a SQL statement. Any form value could be spoofed. So make sure you validate lengths and such as well, besides escaping special characters.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.