2010-08-19 51 views
1

任何人都可以想到为什么$ _POST变量可能在Firefox 3.6上正确发送但不在Firefox 4测试版中的任何原因。我有print_r($ _ POST),并且这个值在FF4中完全不显示。这里是输入HTML:在FF3.6POST变量在FF3.6中正确发送,但不在FF4 beta中

<input type="image" src="images/btn_preview.gif" value="preview" name="buttonPreview"/> 

最后一行中的POST数组:在FF4.0

[chkOrganiser] => 1 [buttonPreview_x] => 54 [buttonPreview_y] => 22 [buttonPreview] => preview) 

最后一行中的POST数组:

[chkOrganiser] => 1 [buttonPreview_x] => 58 [buttonPreview_y] => 20) 
+1

请问我们能看到整个表格吗? – 2010-08-19 08:32:05

回答

3

https://bugzilla.mozilla.org/show_bug.cgi?id=583211

Firefox 4: Html input type image only submits x and y, not name when clicked. 

[...] 

Thanks a lot for this bug report! 

However, our behavior is correct according to HTML5, which we're tracking: 
<http://www.whatwg.org/html/#form-submission-algorithm> , step 7, substep 3 
requires just image-button.x and image-button.y to be appended to the /form 
data set/, which will be submitted. 

It looks like the specification follows IE and Opera in this case. If you'd 
like to see this changed, please submit a bug to 
, component 
"HTML5 spec (editor: Ian Hickson)", or send an email to .
+0

谢谢,这让我疯狂! – 472084 2011-04-18 15:33:09