开发者

Is it normal for the Submit button to show in $_POST data?

开发者 https://www.devze.com 2023-04-02 21:12 出处:网络
Is it normal for开发者_开发问答 the Submit button to show in $_POST data? I have a form and when I var_dump the $_POST data the submit button is showing up. I\'m sure I have never had this before, bu

Is it normal for开发者_开发问答 the Submit button to show in $_POST data?

I have a form and when I var_dump the $_POST data the submit button is showing up. I'm sure I have never had this before, but, I could also be losing it.


it normal for the Submit button to show in $_POST data?

Yes. Submit buttons are regular controls in HTML forms.

The button's value will be transmitted along with the form data.


It is normal and expected. all inputs, (text, button, submit) should be present, except for checkboxes that are off, and disabled fields.


It is normal, because submit button also has it's value atribute like all other input elements (it is a text which you see on the button, like 'OK' or 'Submit')..

0

精彩评论

暂无评论...
验证码 换一张
取 消