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 ...
随机推荐
- 爪哇国新游记之七----使用ArrayList统计水果出现次数
之前学习制作了DArray,了解ArrayList就容易了. /** * 用于存储水果名及数量 * */ public class Fruit{ private String name; public ...
- activemq集群搭建Demo
activemq5.14.5单节点安装Demo 第一步:创建集群目录 [root@node001 ~]# mkdir -p /usr/local/activemqCluster 复制单点至集群目录 [ ...
- 流媒体播放mime类型添加
.m3u8 application/x-mpegURL.ts video/MP2T
- python读取文件特定的行数
from itertools import islice f=open("pyhpd.txt") for a in islice(f,2,6): print(a)
- hdu 4506 小明系列故事——师兄帮帮忙【幂取模乱搞】
链接: http://acm.hdu.edu.cn/showproblem.php?pid=4506 http://acm.hust.edu.cn/vjudge/contest/view.action ...
- js 数组去重方法汇总
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8&quo ...
- 一步一步实现iOS微信自己主动抢红包(非越狱)
前言:近期笔者在研究iOS逆向project,顺便拿微信来练手,在非越狱手机上实现了微信自己主动抢红包的功能. 题外话:此教程是一篇严肃的学术探讨类文章,只用于学习研究,也请读者不要用于商业或其它非法 ...
- MVC总结--数据传递
View->Controller 1.传统方式,Get方式提交.在Controller中获得client请求: string Name = Request["name"]; ...
- python贪吃蛇
代码地址如下:http://www.demodashi.com/demo/13335.html 一.先展示python贪吃蛇效果 二.操作说明 按键 功能 UP 向上移动 DOWN 向下移动 LEFT ...
- Win7各个版本之间的区别
Windows7包含6个版本,分别为Windows7 Starter(初级版).Windows7 Home Basic(家庭普通版).Windows7 Home Premium(家庭高级版).Wind ...