+ 1

Name and Value Attributes

If I do <input type="submit" name="Submit" value="Next" />, it works just fine, but what would happen if I took away the name attribute? They seem to both do the same thing, but then again, I haven't played around too much with it and I'm very new to all of this. Any help would be greatly appreciated!

6th Apr 2019, 9:11 PM
Trevor Roderick
Trevor Roderick - avatar
2 odpowiedzi
+ 4
you know one thing with programming is practicing,so try compiling it and see the result yourself...I wish you goodluck with that.
6th Apr 2019, 10:16 PM
Umar Idris
Umar Idris - avatar
+ 1
Only form elements with a name attribute will have their values passed when submitting a form so that's necessary in this part.
6th Apr 2019, 10:00 PM
Aykut Saraç
Aykut Saraç - avatar