DEV Community

Discussion on: Problem in sending id of an element as a key using POST request

Collapse
linostar profile image
Linostar

If you want to send anything as a key in an HTTP form, you should put it in the "name" attribute not in the "id" attribute of the HTML element (of course it is ok to put it in both).