标题:如何将字段值赋值给某一变量,以备其他网页调用
取消只看楼主
gswycjc
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2011-5-1
结帖率:66.67%
 问题点数:0 回复次数:0 
如何将字段值赋值给某一变量,以备其他网页调用
下面这段代码中,我想将rs("brlword")的值赋值给a,以备在其他网页中调用a的值(用户姓名),可是按下面两处红色处做了调用不到啊,请高手予以指导。

if founderr=true then
call error()
else
    select case rs("bclass")'1正式用户 |0待审核 |2被锁定 |3版主
    case 1
        session("memberusername")=username
        Response.Cookies("soonhostmember")("username") = username
        Response.Cookies("soonhostmember")("password") = password
        response.cookies("soonhostmember")("auid")=rs("id")
        response.cookies("soonhostmember")("sex")=rs("bsex")
        response.cookies("soonhostmember")("mail")=rs("bmail")
        response.cookies("soonhostmember")("url")=rs("burl")
        response.cookies("soonhostmember")("taketime")=rs("btime")
        if rs("boicq")<>"" then
        response.cookies("soonhostmember")("oicq")=rs("boicq")
        end if
        response.cookies("soonhostmember")("face")=rs("bface")
        response.cookies("soonhostmember")("public")=savecookie
        response.cookies("soonhostmember")("class")=1
            if savecookie=1 then
                response.Cookies("soonhostmember").Expires=Date+365
            end if
a=rs("brlword")
        response.redirect"successed.asp"
    case 0   
            response.Cookies("soonhostmember")=now()
            errmsg=errmsg+"<br>"+"<li>正在等待管理员审核!您现在还不能登陆"
            call error()
            response.end
    case 2
        response.Cookies("soonhostmember")=now()
        errmsg=errmsg+"<br>"+"<li>您已经被管理员锁定,请联系管理员"
            call error()
            response.end
    case 3
        session("memberusername")=username
        Response.Cookies("soonhostmember")("username") = username
        Response.Cookies("soonhostmember")("password") = password
        response.cookies("soonhostmember")("auid")=rs("id")
        response.cookies("soonhostmember")("sex")=rs("bsex")
        response.cookies("soonhostmember")("mail")=rs("bmail")
        response.cookies("soonhostmember")("url")=rs("burl")
        response.cookies("soonhostmember")("taketime")=rs("btime")
        response.cookies("soonhostmember")("oicq")=rs("boicq")
        'response.cookies("soonhostmember")("face")=rs("bface")
        response.cookies("soonhostmember")("public")=savecookie
        response.cookies("soonhostmember")("class")=3
        session("membersoonhost")="passed"
            if savecookie=1 then
                response.Cookies("soonhostmember").Expires=Date+365
            end if
a=rs("brlword")
        response.redirect"successed.asp"        
    end select
end if

另一网页中调用代码如下,不知对否:
    <p align="center"> <font size="4">姓名:</font>
          <% =a%><input type=hidden name="stuname" type="text" id="stuname" size=20 maxlength=20 value="<% =a%>">
    </p>



搜索更多相关主题的帖子: 其他 password 如何 
2012-04-11 16:27



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-365586-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.079898 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved