Name a submit button

Why would I give a name attribute to a input of type submit?

So you could refer to it on the server side. You might want to attach a value to it, so it needs a name attribute to be able to identify the value of it.

<input name="submitVal" type="submit" value="someValue">