$xml_temp_string
的内容是什么?你echo出来看看~~~还有表单提交过来的应该用$_POST["..."]
不知道是不是你前面给$xml_temp_string赋$_POST["..."]值了?
的内容是什么?你echo出来看看~~~还有表单提交过来的应该用$_POST["..."]
不知道是不是你前面给$xml_temp_string赋$_POST["..."]值了?
解决方案 »
- 菜鸟求助PHP Excel macro
- php中客户端发送json格式的数据后,服务器端怎样解析?
- 谁能告诉我 phpmailer发送邮件附件 最大允许多少? 我试了下好像很小啊,我传个200多K的压缩包都不行~~~
- 各位,奇怪的问题!事件查看器中可以看到insert的语句,sql放到查询分析器中执行也可以插入数据,但是程序就是没有插入数据!!!
- php新手请教文件上传问题
- 如何隐藏免费Php空间的顶部广告??
- 关于iframe的问题
- 从那个地方关闭 editplus 生成 bak 备份文件的功能
- 十万火急!!请问网上哪里有PHP规范(中文)?
- 调用api接口的时候出现乱码了
- 还有4千多分,准备再散并送100M邮箱,现在再散分。
- 请问哪有Zend的Encode编译器下载,盗版的那种。HH
网页显示结果是:
europe 1 20 1988 20 21 1981 apasin 1 Henry Buller (Department of Geography, University of Paris, France) Geoff A. Wilson (Department of Geography, King\'s College, London) Andreas Holl (Danish Forest and Landscape Research Institute, Horsholm, Den)Hardback H Ashgate Publishing Limited 1-84014-504-8 156 x 223 2000 182536434999686 Perspectives on Europe Agri-environmental Policy in the European Union 310 In print IN 28 Jan 2000 54.50 Buller, Henry (Department of Geography, University of Paris, France) 1840145048 184 2 Graeme Barker Tom Rasmussen (University of Manchester)New Ed Stephen Banfield Paperback P Blackwell Publishers 0-631-22038-0 Y 229 x 152 2000 182537007547389 Peoples of Europe S. The Etruscans 400 In print IN Mar 2000 19.99 Barker, Graeme 0631220380 GARD INGRAM BTB063 http://62.173.95.231/jackets/m/063/0631220380.jpg 3 Peter Brown (Princeton University, USA) 2nd Ed Hardback H Blackwell Publishers 0-631-22137-9 Y 229 x 152 2002 182537007952173 Making of Europe S. Triumph and Diversity 200-1000 AD The Rise of Western Christendom 640 Out of print OP 20 Nov 2002 60.00 Brown, Peter (Princeton University, USA) 0631221379 INGRAM 063
(...省略)网页源文件代码是:
<?xml version=\"1.0\"?>
<resultscollection>
<resultsetinformation>
<search_terms>europe</search_terms>
<documentstart>1</documentstart>
<documentend>20</documentend>
<documentcount>1988</documentcount>
<pagelength>20</pagelength><nextpage>21</nextpage>
<lastpage>1981</lastpage>
<nextpage_url><![CDATA[http://62.173.95.224/xmla/dll_results.asp?m=21&CID=apasin&DC=1988&MW=1&DBM=trial&FIELDS=default,jacket&ST_01=europe&SF_01=series]]></nextpage_url>
<lastpage_url><![CDATA[http://62.173.95.224/xmla/dll_results.asp?m=1981&CID=apasin&DC=1988&MW=1&DBM=trial&FIELDS=default,jacket&ST_01=europe&SF_01=series]]></lastpage_url>
</resultsetinformation>
<sessioninfo>
<querystring><![CDATA[/xmla/dll_results.asp?m=1&CID=apasin&DBM=trial&FIELDS=default,jacket&ST_01=europe&SF_01=series]]></querystring>
<prop><![CDATA[TAG=&CID=apasin&PGE=]]></prop>
<cid>apasin</cid>
</sessioninfo>
<resultfields id=\"1\">
<id>1</id>
<titleurl><![CDATA[http://62.173.95.224/xmla/dll_display.asp?K=182536434999686&M=1&CID=apasin&DC=1988&MW=1&DBM=trial&ST_01=europe&SF_01=series]]></titleurl>
<fv_editor id=\"1\">Henry Buller (Department of Geography, University of Paris, France)</fv_editor>
<fv_editor id=\"2\">Geoff A. Wilson (Department of Geography, King\'s College, London)</fv_editor>
<fv_editor id=\"3\">Andreas Holl (Danish Forest and Landscape Research Institute, Horsholm, Den)</fv_editor><fv_format>Hardback</fv_format>
<fv_format_simple_code>H</fv_format_simple_code>
<fv_imprint>Ashgate Publishing Limited</fv_imprint>
<fv_isbn>1-84014-504-8</fv_isbn>
<fv_page_size>156 x 223</fv_page_size>
<fv_pub_year>2000</fv_pub_year>
<fv_ref_no>182536434999686</fv_ref_no>
<fv_series>Perspectives on Europe</fv_series>
<fv_title>Agri-environmental Policy in the European Union</fv_title>
<fv_total_pages>310</fv_total_pages>
<fv_uk_avail>In print</fv_uk_avail>
<fv_uk_avail_code>IN</fv_uk_avail_code>
<fv_uk_pubdate>28 Jan 2000</fv_uk_pubdate>
<fv_uk_vat_price>54.50</fv_uk_vat_price>
<fv_vx_first_name>Buller, Henry (Department of Geography, University of Paris, France)</fv_vx_first_name>
<fv_vx_isbn>1840145048</fv_vx_isbn>
<fv_isbn_prefix>184</fv_isbn_prefix>
</resultfields>
(...省略)
</resultscollection>
<!-- 9768.734/9770.187 Total time: [1.45] -->应该没问题的,来自英国的一个xml服务商。
go on...
应该是<resultfields id="1">
那怎么办?
原文本来也是没有被转义的: ...<resultfields id="1 ">...
但提交过来后就变了,怎么办?
上个页面中提交前的javascript代码:
function checkseries(m,seriesname)
{
var xmlhttp=new ActiveXObject("Msxml2.xmlhttp");
xmlhttp.open("GET","http://62.173.95.224/xmla/dll_results.asp?m="+m+"&CID=apasin&DBM=trial&FIELDS=default,jacket&ST_01="+seriesname+"&SF_01=series",false);
xmlhttp.send();
document.formseries.seriestext.innerText = xmlhttp.ResponseText;
document.formseries.submit();
return true;
}
1、php.ini中
magic_quotes_gpc=off2、接收表单的程序中
if(get_magic_quotes_gpc() == 1)
set_magic_quotes_gpc(0);
好烦!
不行啦,不做这个项目,我拿着工资回家过年去,上海不好玩。
翠花……