kwandoa 0 Posted April 24, 2013 Report Share Posted April 24, 2013 Regarding data validation and sanatizing, would it be considered wise to use HTML5 and Javascript data validation functions together with PHP data validation/sanatizing functions? I would think yes BUT I am concerned and don't understand what implications it could have on a production site. Quote Link to post Share on other sites
HartleySan 826 Posted April 24, 2013 Report Share Posted April 24, 2013 You should always use PHP to validate user input, regardless of what client-side validation you are or aren't performing. With that said, adding HTML5/JS validation never hurts. My personal preference these days is to use the new HTML5 form attributes to perform rudimentary validation without the use of any additional custom JS validation, and then do the final (thorough) validation on the PHP side upon form submission. 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.