if (theform.geterempl.value=='') { alert('请输入收件人!'); theform.geterempl.focus(); return false; } if (theform.emailtitle.value=='') { alert('请输入主题!'); theform.emailtitle.focus(); return false; } if (theform.emailtitle.value.length>200) { alert('主题请少于200字节'); theform.emailtitle.focus(); return false; } if (theform.body.value.length>15*1024) { alert('正文请少于16K'); theform.body.focus(); return false; } if (theform.emailshowname.value.length>1024) { alert('签名请少于1K'); theform.emailshowname.focus(); return false; }
} </script> <% meth=request.querystring("meth") if meth=1 then geterempl=trim(request.querystring("geterempl")) emailtitle=trim(request.querystring("emailtitle")) elseif meth=2 then mailid=trim(request.querystring("mailid")) set conn=server.createobject("adodb.connection") conn.open "DSN=;UID=;PWD=" dsnpath="DSN=;UID=;PWD=" set rs=server.createobject("adodb.recordset")