作者crazysky1019 (God Bless Mario)
看板PHP
标题Re: [请益] 有关PHP插入记录
时间Mon Oct 10 21:58:32 2005
form是
<form action="<?php echo $editFormAction; ?>" name="form1" method="POST">
商品表格是
<tr>
<td class="unnamed1 style1">记录编号</td>
<td class="unnamed1 style1">商品编号</td>
<td class="unnamed1 style1">商品名称</td>
<td class="unnamed1 style1">商品单价</td>
<td class="unnamed1 style1">商品数量</td>
<td class="unnamed1 style1">商品总价</td>
<td class="unnamed1 style1"> </td>
</tr>
<?php $sum = 0; do { ?>
<?php //} while ($row_order_track = mysql_fetch_assoc($order_track)); ?> <?php //?>
<tr>
<td class="unnamed1 style1"><input name="id" type="text"
id="id" value="<?php echo $row_order_track['id']; ?>"
size="3" readonly></td>
<td class="unnamed1 style1"><input name="prodid" type="text
" id="prodid" value="<?php echo $row_order_track['prodid'
]; ?>" size="3" readonly></td>
<td class="unnamed1 style1"><input name="prodname" type=
"text" id="prodname" value="<?php echo $row_order_track
['prodname']; ?>" size="3" readonly></td>
<td class="unnamed1 style1"><input name="prodprice" type=
"text" id="prodprice" value="<?php echo $row_order_track
['prodprice']; ?>" size="3" readonly></td>
<td class="unnamed1 style1"><input name="prodnum" type=
"text" id="prodnum" value="<?php echo $row_order_track
['prodnum']; ?>" size="3" readonly></td>
<td class="unnamed1 style1"><input name="prodtotal" type=
"text" id="prodtotal" value="<?php echo $row_order_track
['prodtotal']; ?>" size="3" readonly></td>
<?php $sum += $row_order_track['prodtotal'];?>
</tr>
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.175.28.194
※ 编辑: crazysky1019 来自: 218.175.28.194 (10/10 22:00)