<?
if($_POST['submit']=="提交")
{ //print_r($_FILES);
copy($_FILES['imgfile']['tmp_name'],$_FILES['imgfile']['name']);
}
?>
<form action="" method="post" enctype="multipart/form-data">
<input name="imgfile" type="file" />
<input name="submit" type="submit" value="提交" />
</form>
if($_POST['submit']=="提交")
{ //print_r($_FILES);
copy($_FILES['imgfile']['tmp_name'],$_FILES['imgfile']['name']);
}
?>
<form action="" method="post" enctype="multipart/form-data">
<input name="imgfile" type="file" />
<input name="submit" type="submit" value="提交" />
</form>