Php \通过表单将链接上载到db时添加
希望你能帮我。在我的“添加产品”页面的一个字段中,我有一个广告商链接到他的产品。它基本上是一个链接,一个按钮将客户引导到该链接 这是我在现场上传的内容:Php \通过表单将链接上载到db时添加,php,mysql,html,Php,Mysql,Html,希望你能帮我。在我的“添加产品”页面的一个字段中,我有一个广告商链接到他的产品。它基本上是一个链接,一个按钮将客户引导到该链接 这是我在现场上传的内容: <a target='_blank' href='http://click.linksynergy.com/fs-bin/click?id=3qM*AG8K6Qo&offerid=146141.3706263&type=2&subid=0'><img border="0" src='style/buyn
<a target='_blank' href='http://click.linksynergy.com/fs-bin/click?id=3qM*AG8K6Qo&offerid=146141.3706263&type=2&subid=0'><img border="0" src='style/buynowbutton.png' width='138' height='20'><a/>
这就是db的最终结果:
<a target=\'_blank\' href=\'http://click.linksynergy.com/fs-bin/click?id=3qM*AG8K6Qo&offerid=146141.3706263&type=2&subid=0\'><img border=\"0\" src=\'style/buynowbutton.png\' width=\'138\' height=\'20\'><a/>
我怎样才能阻止这种事情发生
任何帮助都将不胜感激,因为这会自动生成字符串 ,您如何使用DB改进您的工作 使用和输出时:
print htmlspecialchars(stripslashes($text));