php - Is javascript validation enough to keep my forms secure? -


i building website , have questions forms on login/registration page. have few standard javascript validations on login page. questions should disable login button if javascript disabled or should keep php validations on server side code?

which better approach in terms of security? planning keep login/registration button disabled , enable javascript. way can avoid writing php side validation of same javascript there. secure way of doing it?

thanks

overall, use php. javascript can fooled and/or turned off entirely. @ point server gets supplied whatever mr malicious end user wants have, , won't stopping them.

use php validation, , if want fancy, put javascript on top. server-side validate.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -