This following code will get element by name, I\'m gonna change it to get element by ID, how to make it?
if($_SERVER[\"REQUEST_METHOD\"] == \"POST\" &&
By default, an HTML form submits values keyed on the name attribute of the element.
You can modify this behavior using JavaScript by writing a function that handles the onsubmit action of the form and performing the submit yourself.
or otherwise submits the form, the submit event is triggeredonsubmit, it will be called at this pointaction attribute of the form and containing the code in the question). The POST data sent with this request can be keyed on ids or any other identifier you wish to use.return false)