Home  >  Article  >  Backend Development  >  input file获得文件根目录简单实现_PHP教程

input file获得文件根目录简单实现_PHP教程

WBOY
WBOYOriginal
2016-07-21 15:12:10925browse

其实问题很简单
index.html

复制代码 代码如下:




烟台大学体测












upload.php
下面这段js代码就是获得file根目录,然后赋值给hidden类型input,然后就可以交给php or jsp 处理了
复制代码 代码如下:



input file获得文件根目录简单实现_PHP教程

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/326765.htmlTechArticle其实问题很简单 index.html 复制代码 代码如下: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" h...
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