主题:进来看看啊.尤其是高手,表单提交图片问题
//photo.php文件内容:
<form action="input_photo.php" method="post" enctype="multipart/form-data">
<input name="formdata" type="file" >
<input name="提交" type="submit" value=" 提 交 ">
</form>
//input_photo.php
<?
import_request_variables("gp","add_");
echo filetype($add_formdata);
echo filesize($formdata);
print_r($_POST);
?>
提示错误:
Warning: filetype() [function.filetype]: Lstat failed for Array in D:\shanghaicc\test\input_photo.php on line 4
Array ( [提交] => 提 交 )
请问怎么解决?
<form action="input_photo.php" method="post" enctype="multipart/form-data">
<input name="formdata" type="file" >
<input name="提交" type="submit" value=" 提 交 ">
</form>
//input_photo.php
<?
import_request_variables("gp","add_");
echo filetype($add_formdata);
echo filesize($formdata);
print_r($_POST);
?>
提示错误:
Warning: filetype() [function.filetype]: Lstat failed for Array in D:\shanghaicc\test\input_photo.php on line 4
Array ( [提交] => 提 交 )
请问怎么解决?