标题:[分享][讨论][求助]请教:如何用PHP或JS控制:标题限制为4-20个汉字,内容1 ...
取消只看楼主
qiangzai8536
Rank: 1
等 级:新手上路
帖 子:33
专家分:0
注 册:2006-12-13
 问题点数:0 回复次数:0 
[分享][讨论][求助]请教:如何用PHP或JS控制:标题限制为4-20个汉字,内容10-3000个

如何用PHP或JS控制:标题限制为4-20个汉字,内容10-3000个汉字呢?此文本大致如下:谢谢!

<html>
<head>
</head>
<body>

<form method='POST' action='fbjypx_yjzlb.php?action=login'>
<table border="0" align="center" width="750" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" class="f2">密&nbsp;&nbsp;码:<input type="text" name="mm" size="20" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''">
</td>
</tr>
<tr>
<td width="100%" class="f2">标&nbsp;&nbsp;题:<input type="text" name="bt" size="40" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''">
<font class="f1">(23个汉字以内)</font></td>
</tr>
<br>
<tr>
<td width="100%" class="f2">内&nbsp;&nbsp;容:<font class="f1">(3000个汉字以内)</font></td>
</tr>
<tr>
<td width="100%" >
<textarea rows="20" name="nr" cols="105" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"></textarea></td>
</tr>
<tr>
<td width="100%" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="提&nbsp;交">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重&nbsp;来"></td>
</tr>
</table>
</form>
</body>
</html>

搜索更多相关主题的帖子: head PHP 汉字 action 
2007-02-14 01:00



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-120888-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.320533 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved