Javascript verification

Asked

Viewed 99 times

2

My question may be a little vague, but very useful to me.

The point is, I have a website where I’m not validating forms with the PHP rather with javascript, there is some way the user disable the javascript's on the server and make it send data without going through the check?

  • 1

    Related or duplicated: http://answall.com/q/13298/101

  • @bigown I had already seen, and that did not answer my question.

  • 1

    Why do you think you didn’t answer? There is clearly the answer to what has been asked here. I saw over I thought it could be duplicated, now I read better and I’m sure it’s.

1 answer

3


Guilherme, any and all validation on the client side is ineffective to ensure the integrity of your data. However, they are important, as their use makes your page more user friendly and reduces the load of data to the server, since you will have a reduced number of requests with data that is not complete.

Finally, you do not have what control over the browser, and your user has full control over it, it can disable javascript, cookies, notifications, Storage and etc... So it is "normal" for a user to access your page without Javascript.

On the other hand server-side validation can ensure data integrity, and prevent erroneous or malicious data from being processed, but if you decide to only validate on the server, the user may end up with a bad experience and the server unnecessarily overloaded.

So the ideal is to do the validation on both ends (client and server).

  • Thanks for the answer, it took away my doubt. So I will validate on client and server.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.