?? fill_member.asp
字號:
<%@ Language=VBScript %>
<%
DIM username,password
username=TRIM(Request.QueryString("username"))
password=TRIM(Request.QueryString("password"))
'再次檢查口令和用戶名是否為空
On Error Goto 0
if username=""or password="" then
response.redirect "../syspages/error_nouser.htm"
'錯誤:用戶名或口令為空
else
Set con=Server.CreateObject("ADODB.Connection")
con.Open Application("DBCon_ConnectionString")
'檢查是否存在此用戶
strSql="select * from yonghu where yonghu='"+username+"'and kouling='"+password+"'"
Set rs=con.Execute(strSql)
if rs.EOF then
response.redirect "../syspages/error_nothisuser.htm"
end if
Session("username")=username
end if
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function form_info_onsubmit() {
return check();
}
function check()
{
var form=document.form_info;
if(form.kouling.value.length<=0)
{
window.alert("請輸入口令!");
form.kouling.focus();
return false;
}
if(form.kouling2.value.length<=0)
{
window.alert("請輸入確認口令!");
form.kouling2.focus();
return false;
}
if(form.kouling.value!=form.kouling2.value)
{
window.alert("兩次輸入的口令不同!");
form.kouling.focus();
return false;
}
if(form.danwei.value.length<=0)
{
window.alert("請輸入單位名稱!");
form.danwei.focus();
return false;
}
if(form.guojia.value.length<=0)
{
window.alert("請輸入國家名稱!");
form.guojia.focus();
return false;
}
if(form.chengshi.value.length<=0)
{
window.alert("請輸入城市名稱!");
form.chengshi.focus();
return false;
}
if(form.e_mail.value.length>0)
{
if(!JudgeEmail(form.e_mail.value))
{
window.alert("請輸入合法E_mail!");
form.e_mail.focus();
return false;
}
}
return true;
}
//判斷電話號碼有效性
function JudgePhone(strPass)
{
var array,intTmp,strTmp,i;
var re1=/0/gi;
strPass=strPass.replace(re1,"1");
array=strPass.split("-");
for (i=0;i<array.length;i++)
{
intTmp=parseFloat(array[i]);
strTmp=intTmp.toString();
if (strTmp.length!=array[i].length)
return false;
}
return true;
}
//判斷E-mail有效性
function JudgeEmail(strPass)
{
var array,strTmp,re1,re2;
re1=/@/i;
if (strPass.search(re1)==-1)
return false;
array=strPass.match(re1);
if (array.length==1)
{
re2=/\./i;
if (strPass.search(re1)<strPass.search(re2))
return true;
}
return false;
}
//-->
</SCRIPT>
<link rel="stylesheet" href="../html/3508.css">
<style type="text/css">
<!--
.type1 { font-size: 12px; color: #000000; background-color: #FFFFE8}
.red { color: #FF0000}
-->
</style>
</HEAD>
<BODY background="../images/bg1.gif">
<table width="740" border="0" cellspacing="0" cellpadding="0" align="center" height="40">
<tr>
<td width="217" height="39" align="center" valign="bottom"><img src="../images/smallmark.gif" width="120" height="25"></td>
<td width="523" valign="bottom" height="39"><a href="../default.asp">本站首頁</a>
>> 修改注冊信息</td>
</tr>
<tr>
<td colspan="2" height="1" bgcolor="006600"></td>
</tr>
</table>
<table width="740" align="center" cellpadding="0" cellspacing="0" border="0" height="60">
<tr align="center" valign="bottom">
<td height="45">
<h3>修改會員注冊信息</h3>
</td>
</tr>
</table>
<form name=form_info id=form_info method="post" action="modify_member.asp" LANGUAGE=javascript onsubmit="return form_info_onsubmit()">
<table width="600" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="3">用戶名:<span class="red">【<%=rs("yonghu")%>】</span></td>
</tr>
<tr>
<td width="12%">口令: </td>
<td colspan="2" width="88%">
<input id=password
name=kouling type=password value="<%=rs("kouling")%>" class="type1" size="12" maxlength="8">
</td>
</tr>
<tr>
<td width="12%">確認口令:</td>
<td width="88%">
<input id=password2 name=kouling2 type=password value="<%=rs("kouling")%>" class="type1" size="12" maxlength="8">
</td>
</tr>
<tr>
<td width="12%">單位名稱: </td>
<td width="88%">
<input id=text4 name=danwei value="<%=rs("danwei")%>" class="type1" size="40" maxlength="40">
</td>
</tr>
<tr>
<td width="12%">國家: </td>
<td width="88%">
<input id=text5 name=guojia value="<%=rs("guojia")%>" class="type1" size="14" maxlength="20">
</td>
</tr>
<tr>
<td width="12%">城市: </td>
<td width="88%">
<input id=text6 name=chengshi value="<%=rs("chengshi")%>" class="type1" size="14" maxlength="16">
</td>
</tr>
<tr>
<td width="12%">郵編:</td>
<td width="88%">
<input id=text8 name=youbian value="<%=rs("youbian")%>" class="type1" size="10" maxlength="6">
</td>
</tr>
<tr>
<td width="12%">地址: </td>
<td width="88%">
<input id=text7 name=dizhi value="<%=rs("dizhi")%>" class="type1" size="60" maxlength="80">
</td>
</tr>
<tr>
<td width="12%">聯系人: </td>
<td width="88%">
<input id=text9 name=lianxiren value="<%=rs("lianxiren")%>" class="type1" size="12" maxlength="10">
</td>
</tr>
<tr>
<td width="12%">電話:</td>
<td width="88%">
<input id=text10 name=dianhua value="<%=rs("dianhua")%>" class="type1" size="40" maxlength="40">
</td>
</tr>
<tr>
<td width="12%">E_mail: </td>
<td width="88%">
<input id=text12 name=e_mail value="<%=rs("e_mail")%>" class="type1" size="36" maxlength="25">
</td>
</tr>
<tr>
<td height="20" width="12%">主頁: </td>
<td height="20" width="88%">
<input id=text11 name=zhuye value="<%=rs("zhuye")%>" class="type1" size="40" maxlength="30" >
</td>
</tr>
<tr valign="bottom">
<td colspan="3" align="center" height="58">
<input id=reset1 name=reset1 type=reset value=重填 class="type1">
<input id=submit1 name=submit1 type=submit value=確定 class="type1">
</td>
</tr>
</table>
</form>
<!-- #include file="../include/end.htm" -->
</BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -