PHP 表格 post 提交 接受

來源:互聯網
上載者:User

標籤:style   blog   color   io   os   ar   strong   for   div   

    <form action="<?php  echo site_url(‘home/order/sned_order‘); ?>" method="post" >    <table class=‘cart-table‘ border=0>            <thead>                <tr>                    <th width=‘35%‘>項目</th>                    <th width=‘15%‘>狀態</th>                    <th width=‘15%‘>類型/數量</th>                    <th width=‘10%‘>單價</th>                    <th width=‘10%‘>小計</th>                    <th width=‘10%‘>操作</th>                </tr>            </thead>                        <?php  for($i=0;$i<count($db_cart);$i++){?>                        <tr>                            <td>                                <a href="<?php echo site_url(‘home/index/goods_info/‘.$db_cart[$i][‘goods_id‘]); ?>"><?php echo $db_cart[$i][‘name‘]; ?></a>                            </td>                            <td>未支付</td>                            <td class=‘goods-num‘>                                <a href="#" class=‘reduce‘ ss="<?php echo  $db_cart[$i][‘goods_id‘] ?>" id="reduce_<?php echo $db_cart[$i][‘id‘]; ?>"></a>                                <input class="val_num" ss="<?php echo  $db_cart[$i][‘goods_id‘] ?>" id="num_<?php echo $db_cart[$i][‘id‘]; ?>" type="text" value="<?php echo $db_cart[$i][‘goods_num‘]; ?>"  />                                 <a href="#"  class=‘add‘ ss="<?php echo  $db_cart[$i][‘goods_id‘] ?>" id="add_<?php echo $db_cart[$i][‘id‘]; ?>"></a>                            </td>                            <td ><span style="margin-left:15px;" id="price_<?php echo $db_cart[$i][‘id‘]; ?>"><?php echo $db_cart[$i][‘price‘]; ?></span></td>                            <td ><span style="margin-left:10px;" class="sum_money_<?php echo $i+1 ?>  index_money" id="sum_<?php echo $db_cart[$i][‘id‘]; ?>"><?php echo $db_cart[$i][‘price‘]*$db_cart[$i][‘goods_num‘]; ?></span></td>                        <td ><a href="#" style="margin-left:10px;">刪除</a></td>                        </tr>                        <input type="hidden" id="shop_id"   name="shop_id[]" value="<?php echo $db_cart[$i][‘goods_id‘]; ?>" />                                        <?php } ?>                <tr>                    <td colspan="6" style="text-align: right;"><span id="count_money" style="font-size:16px;color:red;margin-right:15px;">總金額:&nbsp;&nbsp;¥<strong ><span id="count_sum_money"></span></strong></span></td>                    <input type="hidden" id="shop_sum_money" name="shop_sum_money"   />                </tr>            </tbody>        </table></form>

---------------------------------------------------

 

 

Array(    [shop_id] => Array        (            [0] => 5            [1] => 4        ))

PHP 表格 post 提交 接受

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.