Relying on HTML 'required' for simple form validation

后端 未结 4 1237
栀梦
栀梦 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:41

    Validation on the server is a must

    You can pretty things up however by validating on both the client and server so the user gets instant feedback, but yes it is neccesary to do validation in PHP.

提交回复
热议问题