- 最后登录
- 2012-1-8
- 在线时间
- 89 小时
- 个人主页
- 注册时间
- 2010-6-29
- 阅读权限
- 50
- 帖子
- 96
- 精华
- 0
- UID
- 751
 
|
发表于 2010-8-17 19:26:10
|显示全部楼层
回复 1# okbb
reg.html,这个是一个注册页面吧,我做的表单是这样的:- <form action="<{spUrl c=login a=c_login}>" method="post" onSubmit="return aclcode();">
- <table cellSpacing="0" cellPadding="0" width="100%" border="0" height="143" id="table212">
- <tr>
- <td width="13%" height="38" class="top_hui_text"><span class="login_txt">帐 号: </span></td>
- <td height="38" colspan="2" class="top_hui_text"><input name="accouts" class="editbox4" value="" size="20"> </td>
- </tr>
- <tr>
- <td width="13%" height="35" class="top_hui_text"><span class="login_txt"> 密 码: </span></td>
- <td height="35" colspan="2" class="top_hui_text">
- <{pwinput id=mypw add="class=pwform name=mypwname"}>
- <img src="/client/tpl/images/luck.gif" width="19" height="18"> </td>
- </tr>
- <tr>
- <td width="13%" height="35" ><span class="login_txt">验证码:</span></td>
- <td height="35" colspan="2" class="top_hui_text"><input name="yzcode" class="editbox4" value="" size="5" maxlength=5>
- <img src="<{spUrl c=Verify a=verifyCode}>" border="0" style="cursor:pointer;" onClick="this.src='index.php?c=Verify&a=verifyCode&' + Math.random(1)" alt="看不清楚,点击图片刷新" />
- </td>
- </tr>
- <tr>
- <td height="35" > </td>
- <td width="20%" height="35" ><input name="Submit" type="submit" class="button" id="Submit" value="登 陆"> </td>
- <td width="67%" class="top_hui_text"><input name="cs" type="button" class="button" id="cs" value="取 消" onClick=""></td>
- </tr>
- </table>
- <br>
- </form>
复制代码 onSubmit="return aclcode();"//这个是指提交时激活aclcode()函数,这个是由<{pwinput id=mypw add="class=pwform name=mypwname"}>这个生成的,jake的写的加密密码框.
至于你说的echo出来是乱码,这是正常的,因为你的系统默认编码不是UTF8无BOM,你改用smarty模板输出就正常了(模板编码也要设为UTF8无BOM)。
还有那个acl的例子应该不是拿来就能用的,还需要完善,这个我也不太懂滴 |
|