【php开源代码栏目提醒】:网学会员鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“2_8.php”一文,供大家参考学习
<!-------------------------------------------文件名: 2_8.php-------------------------------->
<?php
echo "上传文件信息";
echo "<pre>";
print_r($_FILES);
echo "</pre>";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD X
HTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>上传文件</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data" name="sendfile">
<label>选择上传文件:
<input type="file" name="file" />
</label><br>
<label>
<input type="submit" name="Submit" value="提交" />
</label>
</form>
</body>
</html>