请教个表单提交后信息的处理问题 要插在sql里面的都要处理过 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 htmlspecialchars("$ntxt");用这个函数处理,但是从数据库读取的同时,输出,也应该处理处理类似:$text = eregi_replace('&',('&'),$text);$text = eregi_replace('<',('<'),$text);$text = eregi_replace('>',('>'),$text);$text = eregi_replace('"',('"'),$text); $text = htmlspecialchars($text); $text = str_replace("\n ", "<br> ", $text); $text = str_replace("\n", "<br>", $text); $text = str_replace(" ", "", $text);具体的你可以看下:http://art.21e.cn/tec/7/witchina1644.htm mysql求字段最大值和最小值 一些PHP超简单问题 ...继续(题2)~ syntax error, unexpected T_STRING 问题 新手在此请教各位大大checkbox多选delete问题。 PHP获取当前服务器的域名问题 XMLhttp+ASP遇到的新问题,很奇怪,大家进来看看,有代码. 如何用PHP实现用图示来表示数据?? 有没有昆明的懂PHP的朋友,急需您的帮助!! 各位大虾帮忙忙吧,谢谢拉 招聘php程序员 apache错误 下载.xls文件出现乱码问题(急,在线等)
用这个函数处理,但是从数据库读取的同时,输出,也应该处理
处理类似:
$text = eregi_replace('&',('&'),$text);
$text = eregi_replace('<',('<'),$text);
$text = eregi_replace('>',('>'),$text);
$text = eregi_replace('"',('"'),$text); $text = htmlspecialchars($text);
$text = str_replace("\n ", "<br> ", $text);
$text = str_replace("\n", "<br>", $text);
$text = str_replace(" ", "", $text);具体的你可以看下:http://art.21e.cn/tec/7/witchina1644.htm