新手入门,关于后台处理提交的数据解决办法

WBOY
Release: 2016-06-13 12:13:17
Original
962 people have browsed it

新手入门,关于后台处理提交的数据
除了屏蔽错误提示,检查是否包含sql关键字还有什么需要做的?

希望可以给具体一点的做法,万谢!
------解决思路----------------------
使用pdo的参数绑定可以杜绝sql注入
上传的文件要检查类型和大小,文件夹一定是没有执行权限
另外就是注意用户提交的html标签不要直接输出到页面,用htmlspecialchars先转换一下

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template