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

Home >Backend Development >PHP Tutorial >上传图片功能怎么实现

上传图片功能怎么实现

WBOY
WBOYOriginal
2016-06-13 10:13:32880browse

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

HTML code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->button id="up">上传 

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

------解决方案--------------------
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>
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