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

前端 未结 1 1679
小蘑菇
小蘑菇 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, is probably the wrong tool for the job if you specifically don't want it sent.

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