我在首页用
<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">
用户名:
</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">
密码:
</th>
<td>
<input name="password" id="password" type="password" class="text" autocomplete="off" />
</td>
</tr>
<tr>
<th scope="row" height="30">
</th>
<td>
<input name="lifetime" type="checkbox" class="radio" value="2592000" />记住通行证 <a
href="[!--news.url--]e/member/GetPassword/" target="_top" class="fc_7"><u>忘记密码</u></a>
</td>
</tr>
<tr>
<th scope="row" height="30">
</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>
另外退出登陆的返回地址又该怎么控制呢?谢谢。 |