what is use of name and value because command is still working when we remove name and value | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is use of name and value because command is still working when we remove name and value

<input type="radio" />Male <br />

29th May 2016, 4:28 PM
Manoj singh jalal
Manoj singh jalal - avatar
1 Answer
+ 2
They are used to process the data after the form is submitted. the data processing is done using JavaScript or server-side PHP or other languages. for example, in PHP you can use the name attribute to refer to the input and take the value attribute to get the input data.
29th May 2016, 4:39 PM
James Flanders