我自己写的聊天室源代码(四)
*********************用户注册***************************************<%'用户注册,userinsert.asp%>
<%response.buffer = true%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用户注册</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<script language="JavaScript"><!--
function dd(list)
{
var listtext="";
if ((list.selectedIndex != -1)&&(list.selectedIndex != 0))
listtext = list.options[list.selectedIndex].value;
document.forms[0].易做图.value = listtext
return true;
}
function windowload()
{
document.forms[0].name.focus();
}
function formsubmit()
{
document.forms[0].submit();
}
function mm(text)
{
var aa=""
if (text==1)
aa=document.forms[0].name.value
if (text==2)
aa=document.forms[0].易做图.value
if (text==3)
aa=document.forms[0].pass.value
if (text==4)
aa=document.forms[0].pass1.value
return aa;
}
function msg(text)
{
alert(text);
return;
}
// --></script>
<script language="VBScript"><!--
function input(tt)
dim sc_name,sc_易做图,sc_pass,sc_pass1,sc_flag
sc_flag = 0
'姓名
sc_name = ""
sc_name = trim(mm(1))
if sc_name = "" then
msg("必须输入:您的昵称")
sc_flag = 1
end if
sc_易做图 = ""
补充:asp教程,高级应用