Files
build-web-application-with-…/4.2.md
2012-09-05 23:28:46 +08:00

34 lines
781 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#4.2验证表单的输入
我们开发Web的一个原则就是不能信任任何用户输入的信息所以验证和过滤用户的输入信息就变得相当重要了我们经常会在微博、新闻中听到某某网站被入侵了存在什么漏洞这些大多是是因为对于用户输入的信息没有做严格的验证引起的所以为了编写出安全可靠的Web程序验证表单输入变得相当的重要。
##必填字段
##数字
##中文
##英文
##电子邮件地址
##手机号码
##下拉菜单
##单选按钮
##复选框
##日期和时间
##身份证号码
## links
* [目录](<preface.md>)
* 上一节: [处理表单的输入](<4.1.md>)
* 下一节: [预防跨站脚本](<4.3.md>)
## LastModified
* $Id$