- 1、本文档共133页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
课件13-综合企业网梨代码1
else Response.Write 尊敬的顾客,你搜索到的商品如下 end if显示搜索结果,代码略 end if % ? table tr td width=14% height=25div align=center商品编号/div/td td width=33% height=25div align=center商品名称/div/td td width=15% height=25div align=center商品单价/div/td td width=16% height=25div align=center订购数量/div/td td width=22% height=25div align=center订购与否/div/td /tr %objrs.movefirst do while not objrs.eof productno=objrs.fields(productno) title=objrs.fields(title) price=objrs.fields(price) % tr tdwidth=14%height=22div align=center%=productno%/div/td td width=33% height=22div align=left%=title%/div/td td width=15% height=22div align=left%=price%/div/td form name=form method=post action=ordercar.asp?productno=%=productno% title=%=title%price=%=price% td width=16% height=22input type=textname=textfield/td td width=22% height=22 input type=submit value=订购 id=submit1 name= submit1/td /form /tr %objrs.movenext loop objconn.Close % /table ? 4.Ordercar.asp购物篮处理关键代码 ? !--#include file=gw_caropen.inc-- %ordernumber=trim(Request.Form(“textfield”)) //从货架页面接 收用户输入的订购数量 //判断用户是否已输入订购量或输入的是否为数字 if ordernumber=or not Isnumeric(ordernumber) then% script language=javascript alert(你必须输入数字,请继续输入!); history.go(-1) /script %elseif cint(ordernumber)=0 then% //判断用户已输入订购量 数字是否是大于零 script language=javascript alert(你必须输入大于零的数字,请继续输入!); history.go(-1) /script %elseif session(userid)= then% //判断用户是否已经登录本网站 script language=javascript alert(你必须登录才能订购商品!); history.go(-1) /script %else session(count)=session(count)+1% //Session中增加一条订购商品信息 % 选 购 情 况p/p 你已选定了%Response.Write session(count)%样产品请确认订购,按购物清单浏览购物清单 % num=session(count) //从货架页面接收所选购的商品各项信息 strproductno=Request.QueryString(productno) strproductname=Request.QueryString(title) strpr
您可能关注的文档
最近下载
- 2023年苏州科技大学计算机科学与技术专业《计算机网络》科目期末试卷B(有答案).docx VIP
- 超星尔雅学习通【心理学的智慧(上海大学)】章节测试答案.docx VIP
- 稳定期慢性气道疾病吸入装置规范应用中国专家共识解读课件.pptx VIP
- 2023年苏州科技大学计算机科学与技术专业《计算机网络》科目期末试卷A(有答案).docx VIP
- 人文地理学野外实习(北京师范)中国大学MOOC慕课 客观题答案.docx VIP
- 国开 电大计算机应用基础 终结性考试试题及答案.docx VIP
- 2025年国开 电大计算机应用基础 终结性考试试题及答案 .pdf VIP
- 四年级下四升五暑期语文特色作业2.docx
- 2021年春季学期企业文化第2次平时作业辅导资料-电大一体化平台.docx VIP
- 新生儿低血糖的ppt课件.pptx
文档评论(0)