Are <input> fields without a name attribute submitted to the server?

前端 未结 1 1682
小蘑菇
小蘑菇 2020-12-21 07:43

Lets say I have two input fields inside a form, like so.

相关标签:
1条回答
  • 2020-12-21 08:28

    An input element with no name is never submitted to the server.

    That said, <input> is probably the wrong tool for the job if you specifically don't want it sent.

    0 讨论(0)
提交回复
热议问题