- Attribute of
- <input> HTML Tag
- What does
- Specifies how form data should be submitted to the server. Only for use on input types "submit" and "image".
formenctype attribute overrides the value of
enctype, and has the same encoding options.
It is hard to make a good case for using this attribute. Specifying the encoding type at the point of the submit button only makes sense if you are providing multiple submit buttons with different encoding types for each one. However, this puts the choice of form encoding in the hands of the user. But since the encoding type chosen requires different types of processing on the server, it is difficult to see any use cases where this would be desirable.
Browser Support for formenctype