PHP 购物车应该如何做

WBOY
Release: 2016-06-13 12:19:18
Original
917 people have browsed it

PHP 购物车应该怎么做
在HTML页面上我是这样写的:
            
            
            

minus=减一个,addOne=加一个,相应的choice_num变化。效果图:


方法里:addOne(),minus()。应该怎么做才能存取?
最后在确定好下单的时候我需要一个JSON能获取购物车里的所有信息。应该怎么做
------解决思路----------------------
1,在addOne()和minus()方法中用ajax访问php页面。
2,php页面中进行数据库增减操作。

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!