<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>
<?php
/*
$filepath="F:\php\images";
$filename=$filepath.$upfile_name;
echo $upfile_name;
echo "<p>";
echo $upfile_size;
echo "<p>";
echo $upfile_type;
if(copy($upfile,$filename))
{
unlink($upfile);
echo "<p>";
echo "只定文件已经上传成功.";
echo "<p>";
}
else
{
echo "文件上传失败";
}
*/?>
<body>
<form ENCTYPE="multipart/form-data" action="" method="POST">
<input name="upfile" type="file">
<p>
<input name="sub" type=submit id="sub" value="提交">
<input type=reset value="重新选择">
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>
<?php
/*
$filepath="F:\php\images";
$filename=$filepath.$upfile_name;
echo $upfile_name;
echo "<p>";
echo $upfile_size;
echo "<p>";
echo $upfile_type;
if(copy($upfile,$filename))
{
unlink($upfile);
echo "<p>";
echo "只定文件已经上传成功.";
echo "<p>";
}
else
{
echo "文件上传失败";
}
*/?>
<body>
<form ENCTYPE="multipart/form-data" action="" method="POST">
<input name="upfile" type="file">
<p>
<input name="sub" type=submit id="sub" value="提交">
<input type=reset value="重新选择">
</body>
</html>
看看什么错误
不过你们没看到他的 php 代码是被注释掉的吗?