程序利用FSO+SERV-U(2.x版本)实现: 1、注册文件index.htm <html> <head> <title>宁波科宇网——个人网页申请</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <script language="Javascript"> function CheckIfEnglish( String ) { var Letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-"; var i; var c; if(String.charAt( 0 )==''-'') return false; if( String.charAt( String.length - 1 ) == ''-'' ) return false; for( i = 0; i < String.length; i ++ ) { c = String.charAt( i ); if (Letters.indexOf( c ) < 0) return false; } return true; } function checkSubmit() { var EmailReg = /^[_a-z0-9]+@([_a-z0-9]+\.)+[a-z0-9]{2,3}$/; if (document.form.name.value == "") { alert("请输入您要注册的用户名!"); document.form.name.focus(); return false; } if (!CheckIfEnglish(document.form.name.value )) { alert("用户名不能输入中文及非法字符!"); document.form.name.focus(); return false; } if ((document.form.pass.value == "")&&(document.form.rpass.value == "")) { alert("密码不能为空!"); document.form.pass.focus(); document.form.rpass.focus(); return false; } if ((document.form.pass.value)!=(document.form.rpass.value)) { alert (''二次密码输入不一样!''); document.form.pass.focus(); document.form.rpass.focus(); return false; } if (document.form.email.value == "") { alert("请输入您的Email!"); document.form.email.focus(); return false; } if ((!EmailReg.test(document.form.email.value))&&(document.form.email.value!='''')) { alert (''Email的格式不正确!''); document.form.email.focus(); return false; } return true; } </script> <script language="JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW |