当前位置:编程学习 > asp >>

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

答案:****************************用户修改****************************
<%'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].易做图.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
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_易做图,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_易做图 = ""
    sc_易做图 = trim(mm(2))
    if sc_易做图 = "" 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://old.zzzyk.com/article/Article/"images/edit.jpg" alt="register.jpg (6042 bytes)" WIDTH="367" HEIGHT="121"></td>
    </tr>
    <tr align="center">
      <td width="50%" align="right">您的昵称:</td>
      <td width="50%"><div align="left"><p><input type="text" name="name" size="20"
      maxlength="20">(必须填写,不能有空格)</td>
    </tr>
    <tr align="center">
      <td width="50%" align="right">您的口令:</td>
      <td width="50%"><div align="left"><p><input type="text" name="oldpass" size="20"></td>
    </tr>
    <tr align="center">
      <td width="50%" align="right">您的新性别:</td>
      <td width="50%"><div align="left"><p><select name="D1" size="1" onchange="dd(this);">
        <option selected value="自填 ">自填</option>
        <option value="俊男">俊男</option>
        <option value="美女">美女</option>
        <option value="精灵">精灵</option>
        <option value="野兽">野兽</option>
      </select><input type="text" name="易做图" size="12">(必须填写)</td>
    </tr>
    <tr align="center">
      <td width="50%" align="right">您的新口令:</td>
      <td width="50%"><div align="left"><p><input type="text" name="pass" size="20">(必须填写)</td>
    </tr>
    <tr align="center">
      <td width="50%" align="right">新口令确认:</td>
      <td width="50%"><div align="left"><p><input type="text" name="pass1" size="20">(必须填写)</td>
    </tr>
    <tr align="center">
      <td width="50%" align="right">您的新提示问题:</td>
      <td width="50%"><

上一个:MSSQL数据的远程导入导出
下一个:我自己写的聊天室源代码(六)

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,