打印

请大家帮我看看下面的代码有什么问题没?参数传递不了

<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>文件上传</title>
</head>
<body>
<?
if(!isset($_GET["step"]))
    $_GET["step"]=0;
if($_GET["step"]==0)
{
?>
<form name="form1" method="post" action="upfile.php?step=1" enctype="multipart/form-data" >
<input type="file" name="picture"/>
<input type="submit" name="submit" value="· 提交 ·"/>
</form>
<?
}
elseif($_GET["step"]==1)
{
   if(isset($_POST["picture"]))
    {
      $picture=$_POST["picture"];
    }
   else
    {
      echo"none";
    }
}
?>
</body>
</html>
该文件存储为upfile.php

这段代码我主要是想上传图片,通过XHTML MP 方式上传,并且是通过表单form的post方式传递参数,可是测试时候,表单里的参数picture老传递不过去就是说按了提交之后,函数isset($_POST["picture"]))都是返回0,导致输出的是:none。参数picture无法传递过去。
请大家帮忙看看,上面的代码有什么问题,请指教一二,不胜感激!谢谢了!
该问题已解决,谢谢大家关注!