登陸狀態模板怎麼控制返回地址(登入和退出)

來源:互聯網
上載者:User
我在首頁用

<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>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.