如何忽略来自浏览器的jquery验证验证。 [英] How to ignore jquery validate validation from browser.

查看:83
本文介绍了如何忽略来自浏览器的jquery验证验证。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在表单中使用jquery验证验证。



而不添加未保存的完整表单数据。并且没有进一步的程序。

但不知何故有时候检查MySQL表时所有字段都是空的。(用户注册)



有很多表格中的字段...并且都是强制性的。



所以如何强烈破解或阻止验证。



我尝试了什么:



我尝试调试并检查所有追逐。但在本地所有工作正常。

I use jquery validate validation in form.

without adding full form data not saved. and no further proceedings.
but somehow some time while checking MySQL table all fields are null.(user registration)

there are lots of fields in a form...and all are mandatory.

so how to intensely hack or prevent validation.

What I have tried:

I try debugging and check all chase. but on local all working fine.

推荐答案

用户可以关闭Javascript。或者他们可以使用本地计算机上的HTML文件向您的服务器提交数据,您的Javascript将无法执行。



您执行的任何验证客户端也必须始终在服务器上执行。
The user can turn off Javascript. Or they can submit data to your server using an HTML file on their local computer, where your Javascript won't get a chance to execute.

Any validation you perform on the client must always be performed on the server as well.


选择。禁用javascript,删除javascript,以编程方式提交自己的表单(垃圾邮件发送者可能会这样做),通过输入仅包含空格的字段来利用javascript中的弱点。



Javascript验证很不错,但服务器端验证是强制性的。
Take your pick. Disabled javascript, remove the javascript, submit their own form programatically (spammers are likely to be doing this), exploit weaknesses in the javascript by entering fields with only spaces.

Javascript validation is nice to have, but server-side validation is mandatory.


这篇关于如何忽略来自浏览器的jquery验证验证。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆