asp网站购物车代码问题。先谢谢各位!

来源:百度知道 编辑:UC知道 时间:2024/05/03 05:44:34
asp网站购物车代码问题。因为现在是要注册用户才能购物,如果不注册,直接购物,请问是修改那个地方的代码。先谢谢各位!
1文件
<%
if session("hy")<>"yes" then
response.redirect "hy_dl.asp"
response.end
end if
if session("sp")="" then
response.write "<script>alert('请合法操作!');history.go(-1)</script>"
response.end
end if
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>购物车-<% =rs_xtpz("mc") %>-<% =rs_xtpz("bt") %></title>
<meta name="keywords" content="<% =rs_xtpz("gjz") %>">
<meta name="description" content="<% =rs_xtpz("mc") %>-<% =rs_xtpz("ms") %>">

if session("hy")<>"yes" then
response.redirect "hy_dl.asp"
response.end
end if
删除

网站有一个验证的问题 不是注册会员就不会有相关功能,这可以找到判断语句更改下 就可以了

if session("hy")<>"yes" then
response.redirect "hy_dl.asp"
response.end
end if
删掉

<%
if session("hy")<>"yes" then
response.redirect "hy_dl.asp"
response.end
end if
if session("sp")="" then
response.write "<script>alert('请合法操作!');history.go(-1)</script>"
response.end
end if
%>

全部删除就可以了

文件代码(3)
<%
if session("hy")<>"yes" then
response.redirect "hy_dl.asp"
response.end
end if
%>
<!--#include file="inc/conn.asp" -->
<!--#include file="inc/function.asp" -