what is the use of name. After removing it there is no change | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is the use of name. After removing it there is no change

13th Oct 2016, 10:25 AM
yash
2 Answers
+ 2
You will need name to refer to your input when handling the form data. http://www.w3schools.com/php/php_forms.asp
13th Oct 2016, 11:54 AM
Zen
Zen - avatar
+ 1
Name can also be used to "grab" HTML elements with JavaScript. (Another method, besides ID, class, and tag name.)
13th Oct 2016, 3:35 PM
freginold
freginold - avatar