input的名字问题 <input type="text" name="name[]">同意楼上!处理的时候$_POST['name']还是个数组,遍历它的值! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $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>"; $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>"; 关健是我想把前面的表格和后面的表格联系起来,因为他这里所输入的数据是和前面的相对应的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>";} for($i=0;$i<$num;$i++){echo"<td width='54'><input type=text name=$myrow[Col010]".$i."pm</td>";} 就是这里请问,我到另外一个页面怎么调用这个input我的想法和你的一样,但在另外一个页面我无法调用他,关健我在另外一个页面肯定也得用这个.............帮忙 怎么不能调用了?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); 百度贴吧只看楼主是怎么做的? MYSQL求助,不知道这样的语句能否实现 请问mongodb数据库怎么查询出某一段时间内的数据,急 问一个技术问题,关于substr 和mb_substr session跨页面就失效,我疯了。 php sqlserver 有什么 弊病 问一个关于fckeditor在线编辑器的问题 PHP版的?搞了几天还是没搞定 分被人偷光了,白身问个问题:php支持多级继承吗? 求教以下这段Perl的代码,如何用PHP来实现? 如何使用PHP做个类似点击广告的系统。关注者就有分! 有关php显示图片的问题, 在线等... 怎么样才能控制图片的点击效果?让图片点击时,换张图
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>";
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>";
{
$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>";
}
{
echo"<td width='54'><input type=text name=$myrow[Col010]".$i."pm</td>";
}
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);