Relying on HTML 'required' for simple form validation

后端 未结 4 1242
栀梦
栀梦 2021-01-25 03:00

My question is simple, I\'m writing a simple login/registration form for my website using HTML, PHP and jQuery.

Is it neccesary to write the form validation in PHP also

4条回答
  •  执念已碎
    2021-01-25 03:44

    It might help to think of client side validation being a usability issue and the server side validation being a security issue.

    Where usability might be described as being a "nice to have", security is definitely a "must have".

提交回复
热议问题