alert('上传成功');history.back();";if(!is_uploaded_file($_FILES['userfile']['tmp_name'])){ echo '米有找到临时文件';}else{ echo '临时文件上传成功';}//移动临时文件到指定目录if(!move_uploaded_file($_FILES['userfile']['tmp_name'],'images/'.$_FILES['userfile']['name'])){ echo '为成功';}else{ echo '成功';}echo $_FILES['userfile']['name'];?>图片上传