我自己写的聊天室源代码(五)

聊天室|源代码

****************************用户修改****************************
<%'updateuser.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].sex.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].sex.value
if (text==3)
    aa=document.forms[0].pass.value
if (text==4)
    aa=document.forms[0].pass1.value
if (text==5)
    aa=document.forms[0].oldpass.value
return aa;
}
function msg(text)
{
alert(text);
return;
}
// --></script>
<script language="VBScript"><!--
function input(tt)
    dim sc_name,sc_sex,sc_pass,sc_pass1,sc_flag,sc_oldpass
    sc_flag = 0
    '姓名
    sc_name = ""
    sc_name = trim(mm(1))
    if sc_name = "" then
        msg("必须输入:您的昵称")
        sc_flag = 1
    end if
    sc_oldpass = ""
    sc_oldpass = mm(5)
    if sc_oldpass = "" then
        msg("必须输入:您的口令")
        sc_flag = 1
    end if
    sc_sex = ""
    sc_sex = trim(mm(2))
    if sc_sex = "" then
        msg("必须输入:您的新性别")
        sc_flag = 1
    end if
    sc_pass = ""
    sc_pass = mm(3)
    if sc_pass = "" then
        msg("必须输入:您的新口令")
        sc_flag = 1
    end if
    sc_pass1 = ""
    sc_pass1 = mm(4)
    if sc_pass1 = "" then
        msg("必须输入:新确认口令")
        sc_flag = 1
    end if
    if sc_pass <> sc_pass1 then
        msg("新口令和新确认口令不一致")
        sc_flag = 1
    end if
    if sc_flag = 0 then
        formsubmit()
    else
        windowload()
    end if
end function
--></script>

<meta name="Microsoft Theme" content="none, default">
<meta name="Microsoft Border" content="none">
</head>

<body onload="windowload();">

<form method="POST" action="updateusercl.asp">
  <input type="hidden" name="flag" value=" "><table border="0" width="100%" cellspacing="0">
    <tr>
      <td width="100%" align="right" colspan="2"><div align="center"><center><p><img
      src=http://www.163design.net/a/y/"images/edit.jpg" alt=&quo

时间: 2024-08-07 03:33:55

我自己写的聊天室源代码(五)的相关文章

我自己写的聊天室源代码(十

聊天室|源代码                 for i = 1 to my_point                    if i = my_point then                        session("ss_oldpoint") = my_point - 1                        if session("ss_oldpoint") < 1 then                            

我自己写的聊天室源代码(前言)

聊天室|源代码 1.本系统完全基于ASP开发,使用application,session2.要求浏览器支持cookie3.系统数据源明:chat4.本系统有以下BUG:(1)不能支持使用:"(2)大量说话时,有可能造成某次不能浏览(3)我实在太懒了^O^5.剩下的都是

我自己写的聊天室源代码(七)

聊天室|源代码 *****************************聊天处理******************************<%'chatadmin.asp%><%response.buffer = true%><html> <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title

我自己写的聊天室源代码(八)

聊天室|源代码 ************************不能进入聊天室*************************<%'nochat.asp%><html> <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>不能进入聊天室</title><meta name=&qu

我自己写的聊天室源代码(九)

聊天室|源代码 *************************表情设置**************************<%'optionbq.asp%><html> <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>表情设置</title><meta name="

我自己写的聊天室源代码(六)

聊天室|源代码 *************************用户自杀*************************<%'deleteuser.asp%><html> <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>用户自杀</title><meta name=&quo

我自己写的聊天室源代码(四)

聊天室|源代码 *********************用户注册***************************************<%'用户注册,userinsert.asp%><%response.buffer = true%><html> <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312">&l

我自己写的聊天室源代码(三)

聊天室|源代码 1.用户信息管理用于层次标识无意义<%'useradmin.asp%><html> <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>用户信息管理</title><meta name="GENERATOR" content="Micr

我自己写的聊天室源代码(二)

聊天室|源代码 <%'初始登录页,default.asp%><html> <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta name="GENERATOR" content="Microsoft FrontPage 3.0"><title>登录聊天