0
我需要帮助,我正在编程某种目录,我有一个页面,客户可以上传他们的标志或图像。我制作的每一页都包含在index.php中,我的url看起来像这样www.url.com/index.php?s=upload其中“upload”是upload.php文件的名称。
当我在那个upload.php文件上创建表单并提交它时,$ _FILES数组是空的。
echo "<form method=\"post\" enctype=\"multipart/form-data\" action=\"index.php\" />\n";
echo "<input type=\"file\" name=\"image\">\n";
echo "<input type=\"hidden\" name=\"s\" value=\"upload\">\n";
echo "<input type=\"submit\" name=\"submit\" value=\"Spremi\">\n";
echo "</form>\n";
我尝试了一切,没有任何工作。 $ _ POST的物品退还,但$ _FILES是空的......
没有任何人看到文本浮动'not'标签? – 2010-04-26 13:03:30
@Anthony,我做的! – 2010-04-26 13:05:01
可能是因为标有“-files” – GvS 2010-04-26 13:06:13