username=request("username") openDB() If conn.Execute("Select * from users where user='"&username"'" ).eof Then response.write "用戶名" <font color=red>"&username&"</font> "可以正常注冊!" else response.write "您所選的用戶名" <font color=red>"&username&"</font> "已經有用戶使用,請另外選擇一個用戶名。" end if closeDB()response.End()
openDB()
If conn.Execute("Select * from users where user='"&username"'" ).eof Then
response.write "用戶名" <font color=red>"&username&"</font> "可以正常注冊!"
else
response.write "您所選的用戶名" <font color=red>"&username&"</font> "已經有用戶使用,請另外選擇一個用戶名。"
end if
closeDB()response.End()
{
var ssn=form.username.value.toLowerCase();
if (checkUserName(ssn))
{
var open_url = gotoURL + "?username=" + ssn;
window.open(open_url,'','status=0,directories=0,resizable=0,toolbar=0,location=0,scrollbars=0,width=322,height=200');
}
}
下载下来,最后的一个function就是楼主要的喽