The validation should work in two steps.(验证应分两个步骤进行。)
Firstly the form must validate on the client side, using JavaScript.(首先,表单必须使用JavaScript在客户端进行验证。) Then once the client side script has determined the form is valid it can be sent to the server for further validation.(然后,一旦客户端脚本确定表单有效,就可以将其发送到服务器以进行进一步的验证。)
Unless there is a specific reason for the validation button I would avoid using this.(除非有特定的验证按钮原因,否则我将避免使用此按钮。) Just allow the form to be validated by JavaScript when the user clicks submits, if it passes the initial validation then it can be sent to the server, otherwise, you can display relevant messages on the screen explaining to the user what they must do in order for the form to be valid.(只需让表单在用户单击提交时通过JavaScript进行验证即可,如果它通过了初始验证,则可以将其发送到服务器,否则,您可以在屏幕上显示相关消息,向用户解释他们必须按顺序执行的操作表格才有效。) 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…