javascript - Is there a way to synchronize validation process of server and client side? -


i have noticed there a similar question on stackoverflow, asked in 2008 , 2015. answer points correct direction seems no plug-in out @ time. not able find more recent related question on stackoverflow or google, decided ask again see if there better tools problem.

when doing form validation, necessary both server side validation , client side validation. client side validation can by-passed javascript , html can viewed, server side validation necessary. doing server side validation workable, user experience bad due loading time, , increases burden of server.

so, there way can code validation rule once both server side , client side validation code?

personally prefer php server side not must.

you use ajax. ajax uses javascript communicate server without reloading entire webpage. can used validation purposes.

http://www.freezecoders.com/2012/10/live-check-in-database-using-php-ajax.html

if haven't used ajax before, learn at:

http://www.w3schools.com/ajax/default.asp


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -