21,886
社区成员
发帖
与我相关
我的任务
分享
<?php
print_r($_POST);
?>
<script language=javascript>
String.prototype.lenb = function() {
return this.replace(/[^\x00-\xff]/g,"**").length;
}
function foo(form) {
form.sen.value = form.sendername.value.lenb();
return true
}
</script>
<form method=post onsubmit="return foo(this)">
<input type=hidden name=sen>
<input type=text name=sendername>
<input type=submit>
</form>