PHP 表格 post 提交 接受
<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;">总金额: ¥<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 提交 接受的更多相关文章
- 编辑表格输入内容、根据input输入框输入数字动态生成表格行数、编辑表格内容提交传给后台数据处理
编辑表格输入内容.根据input输入框输入数字动态生成表格行数.编辑表格内容提交传给后台数据处理 记录自己学习做的东西,写的小demo,希望对大家也有帮助! 代码如下: <!DOCTYPE ht ...
- html 和 html5(一)(表格 | 列表 | 提交按钮 | 单选 |复选 | 框架 | 脚本 | html字符实体 )
一.框架 使用iframe来显示目录链接页面 iframe可以显示一个目标链接的页面 目标链接的属性必须使用iframe的属性,如下实例: 实例 <iframe src="demo_i ...
- JQuery异步提交
JQuery提交部分 $.ajax({ url:'www.baidu.com', //提交的地址,相当于form的action type:'POST', //提交方式,相当于form的method d ...
- UITableView表格操作
UITableView[表格视图] UITableView是表格视图,是UIScrollView的子类,非常重要. 一.表格视图常用属性 1.基本属性方法 创建一个tableView // UI ...
- java后台读取/解析 excel表格
需求描述 前台需要上传excel表格,提交到后台,后台解析并返回给前台,展示在前台页面上! 前台部分代码与界面 <th style="padding: 7px 1px;width:15 ...
- 导入Excel表格(二)
1. 提取session中的数据.并进行分页操作,上传excel表格,保存到临时表格. 初始化临时表格,提交表单,判断状态是否为真,若为真,则启用 导入到数据库 的按钮:为false,让查询的url ...
- 快速学习html、css的经典笔记
HTML语言剖析 Html简介-目录 全写: HyperText Mark-up Language 译名: 超文本标识语言 简释:一种为普通文件中某些字句加上标示的语言,其目的在于运用标签(tag ...
- CGI、FastCGI 知识总结
@import url(http://i.cnblogs.com/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/c ...
- Python应用02 Python服务器进化
作者:Vamei 出处:http://www.cnblogs.com/vamei 欢迎转载,也请保留这段声明.谢谢! **注意,在Python 3.x中,BaseHTTPServer, SimpleH ...
随机推荐
- [Android Pro] Notification的使用
Android 4.0以前: 1: 普通的notification private static final int NOTIFY_ID = 0; notificationManager = (Not ...
- mysql 比较隐秘的问题
2017-11-13 13:47:27:DEBUG DubboServerHandler-192.168.30.114:20990-thread-5 com.yryz.qshop.modules.in ...
- Android打印机--小票打印格式及模板设置
小票打印就是向打印设备发送控制打印格式的指令集,而这些打印格式须要去查询相应打印机的API文档,这里我把经常使用的api给封装了一下 文字对齐方式 打印字体大小 字体是否加粗 打印二维码 打印条形码 ...
- VUE 方法
1.$event 变量 $event 变量用于访问原生DOM事件. <!DOCTYPE html> <html lang="zh"> <head> ...
- Windows 2008 R2有效激活方法【转】
原文地址:http://jingyan.baidu.com/article/851fbc3707096e3e1f15ab33.html 装了windows server 2008之后才发现,它与win ...
- 最接近WeChat的全屏自定义相机(Custom Camera)
代码地址如下:http://www.demodashi.com/demo/13271.html 一.需求 最接近WeChat的全屏自定义相机(Custom Camera),拍照和预览都是全屏尺寸.使用 ...
- zabbix触发的多条件判断表达式
2 Trigger expression Overview The expressions used in triggers are very flexible. You can use them ...
- Git-Git Book阅读笔记
git diff [fname] 查看工作区与缓存区异同 git diff --staged [fname] 查看缓存区与上次提交之间的差异 git diff HEAD [fname] 查 ...
- oracle 查询 函数练习2
/*以下代码是对emp表/dept表/salgrade表进行显示宽度设置 */col empno for 9999;col ename for a10;col job for a10;col mgr ...
- Machine-wide Progress Telerik Fiddler installation has been found at ...Please, use that one or uninstall it ...
问题描述:无法安装Fiddle,提示已有Fiddle,但是却找不到. 打开Fiddle,提示“Machine-wide Progress Telerik Fiddler installation ha ...