一个简单的网上书城的例子(五)
程序员文章站
2022-06-08 17:49:17
add.:用户更改所选物品种类与数量!<%head="您所选购的物品已放入购物袋!&q...
add.:用户更改所选物品种类与数量!
<!--#include file="util.asp" -->
<%
head="您所选购的物品已放入购物袋!"
dbpath = server.mappath("shopbag.mdb")
set conn = server.createobject("adodb.connection")
conn.open "driver={microsoft access(小型网站之最爱) driver (*.mdb)};dbq=" & dbpath
productlist = session("productlist")
products = split(request("productid"), ", ")
for i=0 to ubound(products)
puttoshopbag products(i), productlist
next
session("productlist") = productlist
%>
<html>
<head><title><%=head%></title></head>
<body background="b01.jpg">
<h2 align=center><%=head%><hr></h2>
<center>
<a href=check.asp>查看购物袋</a>
<a href=clear.asp>退回所有物品</a><p>
<% listcategory conn %>
</center>
</body>
</html>
<!--#include file="util.asp" -->
<%
head="您所选购的物品已放入购物袋!"
dbpath = server.mappath("shopbag.mdb")
set conn = server.createobject("adodb.connection")
conn.open "driver={microsoft access(小型网站之最爱) driver (*.mdb)};dbq=" & dbpath
productlist = session("productlist")
products = split(request("productid"), ", ")
for i=0 to ubound(products)
puttoshopbag products(i), productlist
next
session("productlist") = productlist
%>
<html>
<head><title><%=head%></title></head>
<body background="b01.jpg">
<h2 align=center><%=head%><hr></h2>
<center>
<a href=check.asp>查看购物袋</a>
<a href=clear.asp>退回所有物品</a><p>
<% listcategory conn %>
</center>
</body>
</html>
上一篇: Android中布局保存成图片实例代码
下一篇: Oracle sql的运行过程分析