The name attribute specifies the name of an <input>
element. It is used to reference elements in a JavaScript, or to reference form data after a form is submitted to the server.
Only form elements with a name attribute will have their values passed when submitting a form.
<form action="http://localhost" method="POST">
<label for="User">User name</label>
<input type="text" id="User" name="Name" value="bino" />
<input type="submit" value="submit" />
</form
When you submit the above, server localhost will recive a content like below:
Name=bino
What are your thoughts on this post?
I’d love to hear from you! Click this link to email me—I reply to every message!
Also use the share button below if you liked this post. It makes me smile, when I see it.