ASP怎么得到登陆之后的用户名

来源:百度知道 编辑:UC知道 时间:2024/05/23 23:04:22
这代码是XML+ASP判断的代码,书ur用户和密码成功就跳到default.asp也面怎么在default.asp页面显示得到的用户名?
<style type="text/css">
<!--
body {
background-image: url(bj/bj.gif);
}
.STYLE1 {font-size: 16px}
.STYLE2 {
font-size: 12px;
font-weight: bold;
}
-->
</style><%@ language="vbscript"%>
<% session("user") %>
<%
'访问childNodes()方法访问文档
user=request("user")
password=request("password")
response.write("<center><h3>你输入的用户名和密码</h3></center>")
response.write("<table width=180 height=50 border=1 align=center cellspacing=1 bordercolor=#000000>")
response.write("<tr><th bordercolor=#CC99FF bgcolor=#CC99FF>用户名</th>")
response.write("<th bordercolor=#CC99FF bgcolor=#CC99FF>密码</th>")
response.write("</tr><tr

在你判断登陆的页面
当用户登陆成功时
设置 session("username")="用户名"

在你转到的页面

欢迎 <%= session("username")%> 登陆

这样方式调用

此问题,我已经回答过了。。

http://zhidao.baidu.com/question/125953878.html

这个也类似。。。看下