我在上传文件时遇到问题,我正在使用此代码......并收到此错误,
我的文件夹名称是服装图像
<?php
$pid = mysql_insert_id();
$folder = $_post['catagory'];
//insert images into folder
$product_name = "$pid.jpg";
move_uploaded_file($_FILES['productImage']['tmp_name'], "$folder._images" / $product_name);
echo "<h1>Your product successfully added <br /> Plese wait....</h1>";
header("refresh:3; url='inventory.php'");
exit();
?>
<form method='post' action='index.php'>
<input type="file" name="productImage" />
<input type="text" name="catagory" />
</form>