设计表单页面,它是静态页面,使用HTML编写,而且使用了JavaScript脚本语言来验证填写表单数据,表单页面为form.htm,代码如下: < html > < head >< title > 教师信息登记表 </ title ></ head > < script language ="JavaScript" > ... function checkit()...{ var theForm; theForm=document.teacForm; if(theForm.Name.value=="")...{ alert("请输入教师注册名!"); document.teacForm.Name.focus(); return false; } if(theForm.TrueName.value=="")...{ alert("请输入教师真实姓名!"); theForm.TrueName.focus(); return false; } if(theForm.PersonalCode.value=="")...{ alert("身份证号码不能为空!"); theForm.PersonalCode.focus(); return false; } if(theForm.pwd.value=="")...{ alert("密码不能为空!"); theForm.pwd.focus(); return false; } if(theForm.cfmpwd.value=="")...{ alert("前后两次输入的密码不一致!"); theForm.cfmpwd.focus(); return false; } if(theForm.BirthDate.value=="")...{ alert("请选择出生日期!"); theForm.BirthDate.focus(); return false; } if(theForm.HomeNum.value=="")...{ alert("电话号码不能为空!"); theForm.HomeNum.focus(); return false; } if(theForm.Email.value=="")...{ alert("Email不能为空!"); theForm.Email.focus(); return false; } if(theForm.Office.value=="")...{ alert("请选择办公所在教研室!"); theForm.Office.focus(); return false; } if(theForm.Edu.value=="")...{ alert("请选择您的最高学历!"); theForm.Edu.focus(); return false; } if(theForm.Post.value=="&#