突然发现这个表单页面是用Javascript写的,HTML里没有Value估计和这个有关系
<head>
<link href="../images/font1.css" rel="stylesheet" type="text/css">
</head>
<SCRIPT language=Javascript>
function IsEmpty(s)
{
if (s.length == 0)
return true;
}
function startSpace(value)
{
ch = value.substring(0, 1);
if(ch == " ")
return true;
}
function charOnly(fieldValue)
{
var length = fieldValue.length;
var ch = "";
for (var i = 0; i < length; i++)
{
ch = fieldValue.substring(i, i + 1);
if ( ((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch)) && ( ch <"0" || "9" < ch ) )
return false;
}
return true;
}
</script>
<SCRIPT language=Javascript>
function ValidateFields2(form)
{
if(IsEmpty(XXXXXXXXXXXXlue)) {
alert("请输入你的姓名!");
XXXXXXXXXXXXcus(); return false;
}
if(IsEmpty(XXXXXXXXXXXXlue)) {
alert("身份证不能为空!");
XXXXXXXXXXXXcus(); return false;
}
if(!(XXXXXXXXXXXXlue.length==15||XXXXXXXXXXXXlue.length==18)) {
alert("身份证为15位或者为18位!");
XXXXXXXXXXXXcus(); return false;
}
if(isNaN(XXXXXXXXXXXXXlue)) {
alert("生日的年份必须为数字!");
XXXXXXXXXXXXXcus(); return false;
}
if(IsEmpty(XXXXXXXXXXXXlue)) {
alert("请输入您所在的县市!");
XXXXXXXXXXXXcus(); return false;
}
if(IsEmpty(XXXXXXXXXXXXXXlue)) {
alert("请输入您详细的通讯地址!");
XXXXXXXXXXXXXXcus(); return false;
}
if(IsEmpty(XXXXXXXXXXXXlue)) {
alert("请输入手机号!");
XXXXXXXXXXXXcus(); return false;
}
if(isNaN(XXXXXXXXXXXXlue)) {
alert("手机号输入有误!");
XXXXXXXXXXXXcus(); return false;
}
if(IsEmpty(XXXXXXXXXXXXXXXlue)||XXXXXXXXXXXXXXXlue.length > 49) {
alert("请输入基本简介,并且长度小于50位!");
XXXXXXXXXXXXXXXcus(); return false;
}
form.submit();
return true;
}
</script>
| <FORM name='FrmNewUser' action='XXXXXXXXXXp' method='post'> | | 姓名: 请填写真实姓名 | <INPUT name=Name id="Name" size=12 maxLength=10 class=button1> * <input type="radio" name="sex" value="0" checked> 女士 <input type="radio" name="sex" value="1">先生 | 身份证号码: 必须认真填写,做为考核依据 | <INPUT name=PSID id="[s:9]SID" size=30 maxLength=18 style="ime-mode:disabled" class=button1> * | | |