【发布时间】:2013-05-01 16:00:22
【问题描述】:
我有一个简单的表单,其中包含一些包含转义 XML 数据的输入。当我提交表单时(仅限IE9),第一次尝试不发送数据;但是,如果我点击浏览器后退按钮并再次提交,则会发送 POST 数据。有任何想法吗?下面是表格:
<form id="bundleOrderInfo" action="/catalog/bundleSubmit" method="POST" ENCTYPE="utf-8" style="">
<input type="text" name="requestForHidden" id="requestForHidden" value="SOMEVALUE">
<input type="text" name="itemName" id="itemName" value="SOME SERVICE VALUE">
<input type="text" name="optionNames" id="optionNames" value="DB Modification||Operational Readiness||Server Capacity Adjustment||Storage Capacity Adjustment||Connectivity Enablement||Security Alignment||">
<input type="text" id="userSelections" name="userSelections" type="text">
<input type="text" id="overallOptions" name="overallOptions" type="text" value='<form><label id="opt1">(1) DB Modification</label><checkbox readonly="false" label="(1) Operational Readiness" id="opt2" >true</checkbox><checkbox readonly="false" label="(1) Server Capacity Adjustment" id="opt3" >true</checkbox><checkbox readonly="false" label="(1) Storage Capacity Adjustment" id="opt4" >true</checkbox><checkbox readonly="false" label="(1) Connectivity Enablement" id="opt5" >true</checkbox><checkbox readonly="false" label="(1) Security Alignment" id="opt6" >true</checkbox></form>'>
<input type="submit" value="Submit">
</form>
【问题讨论】:
-
你的代码可能有问题,使用 IE 按下 F12 然后开始调试,这会让你知道是否有 javascript 错误。
标签: php html forms post internet-explorer-9