[英]How secure are HTML5 forms?
<input id="user_lic" type="number" min="5" max="30" step="5" value ="5"/>
Would someone be able to disable this min="5"
statement and then submit the input with a negative value. 有人能够禁用此
min="5"
语句,然后以负值提交输入。
Or for example bypass the type=number statement and enter a symbol 或者例如绕过type = number语句并输入符号
Yes, any HTML can be modified with a basic page inspector. 是的,可以使用基本页面检查器修改任何HTML。 You'll need to include server-side validation to make sure they're not messing with your page.
您需要包括服务器端验证,以确保它们不会干扰您的页面。
You should use server side validation. 您应该使用服务器端验证。 In addition, I would always use POST for your form, and include client-side javascript validation.
此外,我将始终在表单中使用POST,并包括客户端JavaScript验证。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.