这段php代码哪里错了?谢谢
<?php$uploadfile=basename($_FILES['userfile']['name']);if(move_uploaded_file($FILE[up...
<?php
$uploadfile = basename($_FILES['userfile']['name']);
if(move_uploaded_file($FILE[upf][tmp_name],$uploadfile))
{echo "success";}else {echo "ERROR";}
?>
<form enctype="multipart/form-data" method="post" action="up.php" name="form1">
<input type="file" name="upf" />
<input type="submit" name="sub" value="upload" />
</form>
谢谢 展开
$uploadfile = basename($_FILES['userfile']['name']);
if(move_uploaded_file($FILE[upf][tmp_name],$uploadfile))
{echo "success";}else {echo "ERROR";}
?>
<form enctype="multipart/form-data" method="post" action="up.php" name="form1">
<input type="file" name="upf" />
<input type="submit" name="sub" value="upload" />
</form>
谢谢 展开
3个回答
展开全部
<?php
$uploadfile = basename($_FILES['upf']['name']);
if(move_uploaded_file($_FILES['upf']['tmp_name'],$uploadfile))
{echo "success";}else {echo "ERROR";}
?>
<form enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF'];?> " name="form1">
<input type="file" name="upf" />
<input type="submit" name="sub" value="upload" />
</form>
$uploadfile = basename($_FILES['upf']['name']);
if(move_uploaded_file($_FILES['upf']['tmp_name'],$uploadfile))
{echo "success";}else {echo "ERROR";}
?>
<form enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF'];?> " name="form1">
<input type="file" name="upf" />
<input type="submit" name="sub" value="upload" />
</form>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询