php高手帮我看看这两段代码 怎么老是运行不出来
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<?php
include_once('config.php');
?>
</HEAD>
<meta http-equiv="Content-Type" content="text ml;charset=utf-8">
<BODY>
<form action='adduploadok.php' enctype='multipart/form-data' method='post'>
<table border='0' cellpadding='5'>
<tr><td>产品ID:<input type='text' name='proId' ></tr></td>
<tr><td >下载文件: <input type='file' name='file1' id='0' /></td></tr>
<tr><td><input type='submit' value='提交'></tr></td>
</table>
</form>
</BODY>
</HTML>
<?php
include_once('config.php');
require_once('../core/product.func.php');
$maxSize=1024*1024;
$picExts=array('.rar','.txt','.doc');
extract($_POST);
echo $proId;
if($proId)
{
for($i=0;$i<count($_FILES);$i++){
$filesName=$_FILES[$i]['name'];
$filesSize=$_FILES[$i]['size'];
$filesTmp=$_FILES[$i]['tmp_name'];
$ext=strtolower(strrchr($filesName,'.'));
if(in_array($ext,$picExts) && $filesSize<=$maxSize){
$newName=rand(100000,999999).$ext;
move_uploaded_file($_FILES[$i]['tmp_name'],'../upload/'.$newName);
$rs3=insert_product1($proId,$filesSize,$newName);
echo $filesSize;
var_dump($rs3);
}
}
}
if($rs3){
echo '上传成功!';
jump('listproduct.php');
}
?>