上传 要在点击它的时候允许用户选择一张本机图片上传,代码怎么写?------解决方案--------------------http://www.w3school.com.cn/php/php_file_uplo"/> 上传 要在点击它的时候允许用户选择一张本机图片上传,代码怎么写?------解决方案--------------------http://www.w3school.com.cn/php/php_file_uplo">
Home > Backend Development > PHP Tutorial > 上传图片功能怎么实现

上传图片功能怎么实现

WBOY
Release: 2016-06-13 13:40:49
Original
730 people have browsed it

上传图片功能如何实现
有一个按钮如下:

HTML code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->button id="up">上传 
Copy after login

要在点击它的时候允许用户选择一张本机图片上传,代码怎么写?

------解决方案--------------------
http://www.w3school.com.cn/php/php_file_upload.asp
------解决方案--------------------
HTML code
<input type="file" name="file" id="file"> 
           <input type="submit" name="submit" value="上传" id="up"> <div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
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