现在的位置: 首页 > 综合 > 正文

登陆状态模板怎么控制返回地址(登录和退出)

2013年09月19日 ⁄ 综合 ⁄ 共 2525字 ⁄ 字号 评论关闭
我在首页用

<iframe src="[!--news.url--]e/member/iframe/index.php" width="228" height="158" scrolling="no" frameborder="0"></iframe>

调用登陆状态模板,当登陆成功后,会返回到e/member/iframe/,我想让登陆成功后返回到首页该怎么做?
我的登陆前的登陆状态模板大致如下:

<!--注意这里设置了target="_top",在首页的框架里显示登录成功信息-->
                <form action="[!--news.url--]e/enews/index.php" method="post" id="form1" name="login"
target="_top">
                <tr>
                    <th width="26%" scope="row" align="right" class="fc_7" height="28">
                        用户名:&nbsp;
                    </th>
                    <td width="74%">
                        <input name="username" id="username" type="text" class="text" />
                    </td>
                </tr>
                <tr>
                    <th scope="row" align="right" class="fc_7" height="28">
                        密码:&nbsp;
                    </th>
                    <td>
                        <input name="password" id="password" type="password" class="text" autocomplete="off" />
                    </td>
                </tr>
                <tr>
                    <th scope="row" height="30">
                        &nbsp;
                    </th>
                    <td>
                        <input name="lifetime" type="checkbox" class="radio" value="2592000" />记住通行证&nbsp; <a
                            href="[!--news.url--]e/member/GetPassword/" target="_top" class="fc_7"><u>忘记密码</u></a>
                    </td>
                </tr>
                <tr>
                    <th scope="row" height="30">
                        &nbsp;
                    </th>
                    <td>
                        <span id="span_login"><a href="[!--news.url--]e/member/register/" target="_top">
                            <img src="[!--news.url--]skin/5i/images/bu13.gif" /></a>
                            <input id="submit_img" name="" type="image" src="[!--news.url--]skin/5i/images/bu4.gif" /></span>
                            <input name="enews" type="hidden" value="login" />
                    </td>
                </tr>
                </form>

另外退出登陆的返回地址又该怎么控制呢?谢谢。

[该贴被修改 1 次,最后修改时间 2009-12-24 16:40:24 ]


2009-12-24 16:18:47
已设置保密
顶部

回复


引用

报告
编辑
删除
 
flashjohn

用户头衔:探花

精华贴   :0
发贴数   :5519
经验值   :14211
注册时间:2007-11-27
信息
搜索
好友
发送悄悄话
2千万数据、17.3GB数据库下帝国CMS超强生成速度】   [第 2 楼]

看教程 http://www.phome.net/doc/ecmsedu/base/mbzz/html/loginform.html


2009-12-24 16:19:30
已设置保密
顶部

回复


引用


报告


编辑


删除
 
starsunyzl

用户头衔:书生

精华贴   :0
发贴数   :24
经验值   :119
注册时间:2006-01-07
信息
搜索
好友
发送悄悄话
传承经典-帝国网站管理系统6.6正式版开源发布】   [第 3 楼]

原帖由 flashjohn 于 2009-12-24 16:19:30 发表
看教程 http://www.phome.net/doc/ecmsedu/base/mbzz/html/loginform.html

谢谢,登陆的返回地址已经解决,再请教一下退出登陆的返回地址怎么控制,退出登陆貌似没表单,不能设置
<input type="hidden" name="ecmsfrom" value="http://www.phome.net">


2009-12-24 16:29:00
已设置保密
顶部

回复


引用


报告


编辑


删除
 
 
信息
搜索
好友
发送悄悄话
2千万数据、17.3GB数据库下帝国CMS超强生成速度】   [第 4 楼]

谢谢,已经解决:

<a href="../../enews/?enews=exit&ecmsfrom=[!--news.url--]" target="_top">退出</a>


抱歉!评论已关闭.