{"id":1492,"date":"2023-07-26T13:02:22","date_gmt":"2023-07-26T04:02:22","guid":{"rendered":"http:\/\/2ruja.com\/~game03\/?p=1492"},"modified":"2023-07-26T13:05:04","modified_gmt":"2023-07-26T04:05:04","slug":"the-name-attribute-for-input","status":"publish","type":"post","link":"https:\/\/2ruja.com\/~game03\/wp\/?p=1492","title":{"rendered":"The Name Attribute for &lt;input>"},"content":{"rendered":"\n<!DOCTYPE html>\n<html>\n<body>\n\n<h2>The name Attribute<\/h2>\n\n<form action=\"\/action_page.php\">\n  <label for=\"fname\">First name:<\/label><br>\n  <input type=\"text\" id=\"fname\" value=\"John\"><br><br>\n  <input type=\"submit\" value=\"Submit\">\n<\/form> \n\n<p>If you click the &#8220;Submit&#8221; button, the form-data will be sent to a page called &#8220;\/action_page.php&#8221;.<\/p>\n\n<p>Notice that the value of the &#8220;First name&#8221; field will not be submitted, because the input element does not have a name attribute.<\/p>\n\n<\/body>\n<\/html>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;body>\n\n&lt;h2>The name Attribute&lt;\/h2>\n\n&lt;form action=\"\/action_page.php\">\n  &lt;label for=\"fname\">First name:&lt;\/label>&lt;br>\n  &lt;input type=\"text\" id=\"fname\" value=\"John\">&lt;br>&lt;br>\n  &lt;input type=\"submit\" value=\"Submit\">\n&lt;\/form> \n\n&lt;p>If you click the \"Submit\" button, the form-data will be sent to a page called \"\/action_page.php\".&lt;\/p>\n\n&lt;p>Notice that the value of the \"First name\" field will not be submitted, because the input element does not have a name attribute.&lt;\/p>\n\n&lt;\/body>\n&lt;\/html><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The name Attribute First name: If you click the &#8220;Submit&#8221; button, the form-data will be sent to a page called &#8220;\/action_page.php&#8221;. Notice that the value of the &#8220;First name&#8221; field will not be submitted, because the input element does not have a name attribute.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41,40],"tags":[],"_links":{"self":[{"href":"https:\/\/2ruja.com\/~game03\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1492"}],"collection":[{"href":"https:\/\/2ruja.com\/~game03\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2ruja.com\/~game03\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2ruja.com\/~game03\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/2ruja.com\/~game03\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1492"}],"version-history":[{"count":2,"href":"https:\/\/2ruja.com\/~game03\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1492\/revisions"}],"predecessor-version":[{"id":1499,"href":"https:\/\/2ruja.com\/~game03\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1492\/revisions\/1499"}],"wp:attachment":[{"href":"https:\/\/2ruja.com\/~game03\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2ruja.com\/~game03\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2ruja.com\/~game03\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}