📄 addcar.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file=Cookies.asp-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>addcar.asp</title>
</head>
<body>
<div align="left">
<div align="center">
<%
goods_id=request.QueryString("goods_id")
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * From goods where goods_id="& goods_id
rs.open sql,conn,1,1
%>
<form action="addcarcheck.asp" method="post" name="form">
<table width="584" border="1" align="center" class="style2">
<tr>
<td width="95"><div align="center">货物编号</div></td>
<td width="91"><div align="center">货物名称</div></td>
<td width="65"><div align="center">单价</div></td>
<td width="60"><div align="center">存货量</div></td>
<td width="39"><div align="center">数量</div></td>
</tr>
<tr>
<td width="95" height="20" nowrap><div align="center"><%=rs(0)%></div></td>
<td width="91" height="20" nowrap><div align="center"><%=rs("name")%></div></td>
<td width="65" height="20" nowrap><div align="center"><%=rs("price")%></div></td>
<td width="60" height="20" nowrap><div align="center"><%=rs("inventory")%></div></td>
<td width="39" height="20" nowrap><div align="center"><input type="text" name="num" size="6" value="1"></div></td>
</tr>
<tr><div align="center">
</div></tr>
</table>
<p align="center">
<input type="hidden" value="<%=rs("inventory")%>" name="count">
<input type="hidden" value="<%=rs(0)%>" name="goods_id">
<input name="submit" type="submit" class="style1" value="放入我的购物车">
</p>
</form>
<%
rs.close
set rs=nothing
closedb
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -