Переменная POST отправляется правильно в FF3.6, но не в бета-версии FF4 - PullRequest
1 голос
/ 19 августа 2010

Может кто-нибудь придумать причину, по которой переменная $ _POST может быть правильно отправлена ​​в Firefox 3.6, но не в бета-версии Firefox 4 У меня есть print_r ($ _ POST), и это значение просто не отображается в FF4. Вот входной HTML:

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

Последняя строка массива POST в FF3.6:

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

Последняя строка массива POST в FF4.0:

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

1 Ответ

3 голосов
/ 19 августа 2010

см. 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:
<a href="http://www.whatwg.org/html/#form-submission-algorithm" rel="nofollow noreferrer"><http://www.whatwg.org/html/#form-submission-algorithm></a>, <b>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</b>.

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 .
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...