Change input type by element inspection, [duplicate]

-1

About the possibility of a user changing the input type by inspection of elements. How can this be done and how can it be avoided?

    
asked by anonymous 23.03.2017 / 18:31

2 answers

0

In general this can not be avoided, the legal would be to use JS for validation (or the language you are using). This way you can avoid any changes you do not want (the user can do).

    
23.03.2017 / 18:33
0

In addition to the validation in the client (JS), never forget to perform the validation also on the server (depends on the chosen language, eg Php). If the user attempts to circumvent some validation on the client, he will not be able to circumvent the server so easily.

    
23.03.2017 / 18:44