<input type="text" name="name[]">
同意楼上!
处理的时候$_POST['name']还是个数组,遍历它的值!

解决方案 »

  1.   

    $myrow = mssql_fetch_array($result);
    echo"<tr>";
    echo "<td width='52' align='center' bgcolor=#3300CC>$myrow[Col001]</td>";
    echo "<td width='34' align='center' bgcolor=#3300CC>$myrow[Col010]</td>";
    echo "<td width='52' align='center' bgcolor=#3300CC>$myrow[Col012]</td>";for ($i = 0; $i < $num; $i++) {
    echo"<td width='54'><input type=text name=$i></td>";
    }
    echo "</tr>";
      

  2.   

    $myrow = mssql_fetch_array($result);
    echo"<tr>";
    echo "<td width='52' align='center' bgcolor=#3300CC>$myrow[Col001]</td>";
    echo "<td width='34' align='center' bgcolor=#3300CC>$myrow[Col010]</td>";
    echo "<td width='52' align='center' bgcolor=#3300CC>$myrow[Col012]</td>";for ($i = 0; $i < $num; $i++) {
    echo"<td width='54'><input type=text name=$i></td>";
    echo"<td width='54'><input type=text name=$i></td>";这里呢!!!!这里不能用呀
    }
    echo "</tr>";
      

  3.   

    关健是我想把前面的表格和后面的表格联系起来,因为他这里所输入的数据是和前面的相对应的for ($i = 0; $i < $num; $i++)
    {
    $myrow = mssql_fetch_array($result);

    echo"<tr>";
    echo "<td width='52' align='center' bgcolor=#3300CC>$myrow[Col001]</td>";
    echo "<td width='34' align='center' bgcolor=#3300CC>$myrow[Col010]</td>";
    echo "<td width='52' align='center' bgcolor=#3300CC>$myrow[Col012]</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]1am</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]1pm</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]2am</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]2pm</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]3am</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]3pm</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]4am</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]4pm</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]5am</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]5pm</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]6am</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]6pm</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]7am</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]7pm</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]8am</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]8pm</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]9am</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]9pm</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]10am</td>";
    echo"<td width='54'><input type=text name=$myrow[Col010]10pm</td>";
    echo"<td width='54'><a href='del.php?id=".$myrow[id]."'>删除</a></td>";
    echo"</tr>";
    }
      

  4.   

    for($i=0;$i<$num;$i++)
    {
    echo"<td width='54'><input type=text name=$myrow[Col010]".$i."pm</td>";
    }
      

  5.   

    就是这里请问,我到另外一个页面怎么调用这个input我的想法和你的一样,但在另外一个页面我无法调用他,关健我在另外一个页面肯定也得用这个.............帮忙
      

  6.   

    怎么不能调用了?
    for($i=0;$i<$num;$i++)
    {
        $varname = "myrow[Col010]".$i."am";
        $value["am".$i] = $_POST[$$varname];
        $varname = "myrow[Col010]".$i."pm";
        $value["pm".$i] = $_POST[$$varname];
    }print_r($value);