<form name="form1"...>
<? echo $ID=$_GET['h'] ?> //这里的$ID不是表单变量,所以无法传递.
<input type="text" name="k"...>
</form>改成这样试试<form name="form1" method="post" action="<? echo $PHP_SELF;?>?ID=<? echo $id;?>&k=<? echo $k;?>">
<input type="hidden" name="ID" value="<? echo $_GET['h'] ?>">
<input type="text" name="k" value="<? echo $_GET['h'];?>">
...
</form>
<? echo $ID=$_GET['h'] ?> //这里的$ID不是表单变量,所以无法传递.
<input type="text" name="k"...>
</form>改成这样试试<form name="form1" method="post" action="<? echo $PHP_SELF;?>?ID=<? echo $id;?>&k=<? echo $k;?>">
<input type="hidden" name="ID" value="<? echo $_GET['h'] ?>">
<input type="text" name="k" value="<? echo $_GET['h'];?>">
...
</form>
<? $ID=$_GET['h'] ?>
<input type="text" name="k" value="<? echo $ID;?>"> /////这个地方就奇怪了,这儿k是有值的
</form>action里ID的值就是空的,晕了~~~