asp中如何response.write参数存入数据库中?
<tablewidth="100%"border="0"cellpadding="5"cellspacing="0"class="datatable"><formacti...
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="datatable">
<form action="Buy_order.asp" method="post" name="add">
<tr>
<td width="14%"><strong>产品名称:</strong></td>
<td width="86%" colspan="2"><%
exec="select * from [products] where id="&products_id
set rss=server.createobject("adodb.recordset")
rss.open exec,conn,1,1
response.write ("<a href=""/ShowProducts.asp?id="&rss("id")&"""><b>"&rss("title")&"</b></a>")
%>
<label>
<input name="products_id" type="hidden" value="<%=products_id%>" />
</label></td>
</tr>
<tr>
<td><strong>订单编号:</strong></td>
<td width="86%" colspan="2"><%BuyId = year(now) & month(now) & day(now) & hour(now) & minute(now) & second(now)%><%=buyid%>
<input name="OrderNo" type="hidden" value="<%=buyid%>" />
<input name="userid" type="hidden" value="<%=Request.Cookies("UserId")%>" /></td>
</tr>
<tr>
<td><strong>订购数量:</strong></td>
<td colspan="2"><label>
<input name="number" type="text" value="1"/>
</label></td>
</tr>
<tr>
<td><strong>订购姓名:</strong></td>
<td colspan="2"><input name="name" type="text" value="<%=rs("zsname")%>"/></td>
</tr>
<tr>
<td><strong>联系电话:</strong></td>
<td colspan="2"><input name="tel" type="text" value="<%=rs("tel")%>"/></td>
</tr>
<tr>
<td><strong>联系地址:</strong></td>
<td colspan="2"><input name="address" type="text" value="<%=rs("gsadd")%>" size="40"/></td>
</tr>
<tr>
<td><strong>邮政编码:</strong></td>
<td colspan="2"><input name="code" type="text" value="<%=rs("youbian")%>"/></td>
</tr>
<tr>
<td><strong>其它说明:</strong></td>
<td colspan="2"><textarea name="sm" cols="40" rows="8"></textarea></td>
</tr>
<tr>
<td><strong>订单金额:</strong></td>
<td width="86%" colspan="2"><input name="jiage" type="text" value="<%=rs("jiage")%>"/>
</tr>
<tr>
<td><strong>订单时间:</strong></td>
<td colspan="2"><%=now%></td>
</tr>
<tr>
<td> </td>
<td colspan="2"><label>
<input name="button" type="submit" class="Button2" id="button" value="提交订单" />
</label></td>
</tr></form> 展开
<form action="Buy_order.asp" method="post" name="add">
<tr>
<td width="14%"><strong>产品名称:</strong></td>
<td width="86%" colspan="2"><%
exec="select * from [products] where id="&products_id
set rss=server.createobject("adodb.recordset")
rss.open exec,conn,1,1
response.write ("<a href=""/ShowProducts.asp?id="&rss("id")&"""><b>"&rss("title")&"</b></a>")
%>
<label>
<input name="products_id" type="hidden" value="<%=products_id%>" />
</label></td>
</tr>
<tr>
<td><strong>订单编号:</strong></td>
<td width="86%" colspan="2"><%BuyId = year(now) & month(now) & day(now) & hour(now) & minute(now) & second(now)%><%=buyid%>
<input name="OrderNo" type="hidden" value="<%=buyid%>" />
<input name="userid" type="hidden" value="<%=Request.Cookies("UserId")%>" /></td>
</tr>
<tr>
<td><strong>订购数量:</strong></td>
<td colspan="2"><label>
<input name="number" type="text" value="1"/>
</label></td>
</tr>
<tr>
<td><strong>订购姓名:</strong></td>
<td colspan="2"><input name="name" type="text" value="<%=rs("zsname")%>"/></td>
</tr>
<tr>
<td><strong>联系电话:</strong></td>
<td colspan="2"><input name="tel" type="text" value="<%=rs("tel")%>"/></td>
</tr>
<tr>
<td><strong>联系地址:</strong></td>
<td colspan="2"><input name="address" type="text" value="<%=rs("gsadd")%>" size="40"/></td>
</tr>
<tr>
<td><strong>邮政编码:</strong></td>
<td colspan="2"><input name="code" type="text" value="<%=rs("youbian")%>"/></td>
</tr>
<tr>
<td><strong>其它说明:</strong></td>
<td colspan="2"><textarea name="sm" cols="40" rows="8"></textarea></td>
</tr>
<tr>
<td><strong>订单金额:</strong></td>
<td width="86%" colspan="2"><input name="jiage" type="text" value="<%=rs("jiage")%>"/>
</tr>
<tr>
<td><strong>订单时间:</strong></td>
<td colspan="2"><%=now%></td>
</tr>
<tr>
<td> </td>
<td colspan="2"><label>
<input name="button" type="submit" class="Button2" id="button" value="提交订单" />
</label></td>
</tr></form> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询