Home  >  Article  >  Backend Development  >  Simple implementation of input file to obtain the file root directory_PHP tutorial

Simple implementation of input file to obtain the file root directory_PHP tutorial

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

其实问题很简单
index.html

复制代码 代码如下:




烟台大学体测












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



Simple implementation of input file to obtain the file root directory_PHP tutorial

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