Home >Web Front-end >HTML Tutorial >HTML相关知识和经验的碎片化记录_html/css_WEB-ITnose

HTML相关知识和经验的碎片化记录_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:22:151350browse

1、标签input在type="file"时,name是必须属性

1  <form id="MainFileUpload" name="MainFileUpload" enctype="multipart/form-data">                                                2   <div class="cls_MainFileUpload">                                                       3     <div class="cls_MainFileUpload2">4      <img id="MainFileUploadBtnImg" class="cls_MainFileUploadBtnImg" alt="" src="" />                                                                                                     <input class="cls_FileUpload" type="file"" id="{0}_FileUpload" name="FileUpload"/>                                                   5      </div>                                                6   </div>7  </form>

标签input在type="file"时,name是必须属性,如果没有name属性,那么在表单提交时,文件不能被提交(即上传)<br /><br />后续更新中,敬请期待...

Statement:
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