Home > Web Front-end > HTML Tutorial > html file upload box input tag_html/css_WEB-ITnose

html file upload box input tag_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:54:34
Original
1319 people have browsed it

File upload box
Sometimes, users are required to upload their own files. The file upload box looks similar to other text fields, but it also contains A browse button. Visitors can select the file to be uploaded by entering the path of the file to be uploaded or clicking the browse button. Code format: Attribute explanation: Attribute explanation: type="file" definition File upload box; the name attribute defines the name of the file upload box. To ensure accurate data collection, a unique name must be defined; the size attribute defines the width of the file upload box, the unit is the width of a single character; the maxlength attribute defines the maximum number of input characters .
Note:
For file upload to be successful, the following points must be met:

  1. The INPUT type=file element must appear within the FORM element.
  2. The value of the NAME tag attribute must be specified for the INPUT type=file element.
  3. The value of the METHOD tag attribute of the FORM element must be set to post.
  4. The value of the ENCTYPE tag attribute of the FORM element must be set to multipart/form-data.

File upload box
Sometimes, users are required to upload their own files. The file upload box looks similar to other text fields, except that it A browse button is also included. Visitors can select the file to be uploaded by entering the path of the file to be uploaded or clicking the browse button. Code format: Attribute explanation: Attribute explanation: type="file" definition File upload box; the name attribute defines the name of the file upload box. To ensure accurate data collection, a unique name must be defined; the size attribute defines the width of the file upload box, the unit is the width of a single character; the maxlength attribute defines the maximum number of input characters .
Note:
For file upload to be successful, the following points must be met:

  1. The INPUT type=file element must appear within the FORM element.
  2. The value of the NAME tag attribute must be specified for the INPUT type=file element.
  3. The value of the METHOD tag attribute of the FORM element must be set to post.
  4. The value of the ENCTYPE tag attribute of the FORM element must be set to multipart/form-data.
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template