簡體   English   中英

POST變量在FF3.6中正確發送,但在FF4 Beta中不能正確發送

[英]POST variables sending correctly in FF3.6 but not in FF4 beta

誰能想到在Firefox 3.6而不是Firefox 4 beta上正確發送$ _POST變量的任何原因。 我有print_r($ _ POST)並且這個值在FF4中根本不顯示。 這是輸入的html:

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

FF3.6中的POST數組的最后一行:

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

FF4.0中的POST數組的最后一行:

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

參見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 .

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM