在ecshop的购物流程页,商品列表加一个复选框,并实现与之相对应功能的代码,该怎么处理

WBOY
Release: 2016-06-13 11:49:00
Original
999 people have browsed it

在ecshop的购物流程页,商品列表加一个复选框,并实现与之相对应功能的代码

本帖最后由 wangjingjing_101 于 2013-11-20 16:31:43 编辑
------解决方案--------------------
你不是都写好了吗?
------解决方案--------------------
比如删除,点击的时候获取goods_id 也就是这个复选框的值,用ajax把这个id传到你的php,然后删除。

------解决方案--------------------
<br /><?php<br />if (isset($_POST['submit']))<br />{<br />	print_r($_POST['select']);<br />}<br />?><br /><form action='' method=post><br /><input name="select[]" type="checkbox" value="goods_id_1" /><br /><input name="select[]" type="checkbox" value="goods_id_2" /><br /><input name="select[]" type="checkbox" value="goods_id_3" /><br /><input name="select[]" type="checkbox" value="goods_id_4" /><br /><input type=submit name=submit><br /></form><br /><br />
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!