【发布时间】:2018-12-31 14:10:53
【问题描述】:
我不知道为什么这不起作用...帖子中不包含任何数据... 所以在使用 php 中的设置之类的设置之前,我还应该考虑其他什么?
<html lang="en">
<body>
<form method="post" action="gambaqprocess.php" enctype="multipart/form-data">
<div class="form-group">
<label>file attachment</label>
<input type="file" name="file" id="file"
cols="10" wrap="soft" placeholder="" rows="5" value=""></input>
</div>
<button type="submit" class="btn btn-danger" name="action"
value="view">Add</button>
</form>
</body>
</html>
那么这就是过程
<?php
if(isset($_POST['file']))
{
$file=$_files['file'];
print_r($file);
$filename=$_files['file']['name'];
print_r($file);
}else
echo'cannot get post data';
?>
【问题讨论】:
标签: javascript php oracle