Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[疑难] 这段代码为什么在随便看看页面没问题,用在首页模板就登陆不了呢

[复制链接]
fhjdz 发表于 2011-1-27 00:03:51 | 显示全部楼层 |阅读模式
UCHome模板
适用版本: UCHome 2.0
语言编码: GBK简体 
风格转换者: 仿制
<!--{else}-->
    <form id="loginform" name="loginform" action="do.php?ac=$_SCONFIG[login_action]&$url_plus&ref" method="post">
    <div class="divbox">
     <div>
      <label>帐 号</label><input type="text"  name="username" id="username" value="用户名或Email" class="textbg" tabindex="1"/>
     </div>
     <div><label>密 码</label><input type="password" name="password" id="password" class="textbg" value="$password" tabindex="2" /></div>
     <div style="margin:0 0 0 48px;">
      <p><input type="checkbox" id="cookietime" name="cookietime" value="315360000" $cookiecheck tabindex="4" style="margin-bottom:-1px;"> 记住密码</p>
     </div>
     <p class="login_tip"><span><a href="do.php?ac=$_SCONFIG[register_action]" class="active">用户注册</a></span><span class="pipe">|</span><span><a href="do.php?ac=lostpasswd">找回密码</a></span></p>
    </div>
    <div class="divboxr"><input type="submit" name="loginsubmit" id="loginsubmit" title="登录" value="登录" class="bntlogin"  tabindex="3"/></div>
    <input type="hidden" name="refer" value="index.php" />
    <input type="hidden" name="formhash" id="formhash" value="<!--{eval echo formhash();}-->" />
    </form>
<!--{/if}-->
    <span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span>
   </div><!--/ login-->
  </div><!--/ bd-->
</div><!--/ #one-->

请高手指点下啊
kuaigou8 发表于 2011-1-27 10:15:24 | 显示全部楼层
好像是多了一些代码 ,把这句<input type="hidden" name="refer" value="index.php" />去掉,看看
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-9 20:57 , Processed in 0.100717 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表