Why do I need the name and id attributes for <input> form elements?
Which is used for POST data sending and which can I exclude?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
nameis used by the server-side. This is necessary if you plan to process the field.idis only solabelelements, when clicked and accessed by screen-readers, can trigger/invoke the form controls (inputs and selects).results in
If the method is
GET, it’s appended to the query string:http://site-name.com/form-handler.php?first_name=johnIt’s popular for query string appending with hidden inputs:
<input type="hidden" name="q" value="1">