I wrote my own chat room source code (II)

Source: Internet
Author: User
Tags trim microsoft frontpage
Chat Room | Source code <% ' initial login page,default.asp%>

<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<meta name= "generator" content= "Microsoft FrontPage 3.0" >
<title> Login Chat Room </title>
<script language= "JavaScript" ><!--
function Windowload ()
{
Document.forms[0]. T1.focus ();
}
function TestValue (TT1)
{
var Val;
val = "";
if (TT1 = 1)
{val = document.forms[0]. T1.value;}
if (TT1 = 2)
{val = document.forms[0]. T3.value;}
Return Val
}
function msg (TT)
{
Alert (TT);
}
function Formsubmit ()
{
Document.forms[0].submit ();
}
--></script>
<script language= "VBScript" ><!--
function Allpass ()
Dim Sc_message,sc_ss,sc_flag
SC_SS = TestValue (1)
Sc_flag = 0
If trim (SC_SS) = "" Then
Sc_flag = 1
Sc_message = "User name must be entered!" "
Else
SC_SS = TestValue (2)
If trim (SC_SS) = "" Then
Sc_flag = 1
Sc_message = "must enter password!" "
End If
End If
If Sc_flag = 0 Then
Formsubmit ()
Else
MSG (sc_message)
Windowload ()
End If
End Function
--></script>

<meta name= "Microsoft Border" content= "None" >

<body background= "Images/bg03.gif" language= "JavaScript" onload= "Windowload" (); >

<form method= "POST" action= "chatadmin.asp" >
<table border= "0" width= "100%" cellspacing= "0" >
<tr>
&LT;TD width= "100%" colspan= "4" ><div align= "center" ><center><p><!--WebBot bot= "ImageMap"
Rectangle= "(347,104) (390, 122) deleteuser.asp# #_blank"
Rectangle= "(302,105) (344, 122) updateuser.asp# #_blank"
Rectangle= "(254,105) (296, 122) insertuser.asp# #_blank" src=http://www.163design.net/a/y/"Images/title.gif" border= "0"
Width= "432" height= "159"--></td>
</tr>
&LT;TR align= "center" >
&LT;TD width= "50%" colspan= "2" ><div align= "right" ><p> your nickname:</td>
&LT;TD width= "50%" colspan= "2" ><div align= "left" ><p><input type= "text" name= "T1" size= ">< /TD>
</tr>
&LT;TR align= "center" >
&LT;TD width= "50%" colspan= "2" ><div align= "right" ><p> your password:</td>
&LT;TD width= "50%" colspan= "2" ><div align= "left" ><p><input type= "password" name= "T3"
Size= "></td>"
</tr>
&LT;TR align= "center" >
&LT;TD width= "25%" align= "center" ><input type= "Radio" value=http://www.163design.net/a/y/"Images/mood12.gif" Checked
Name= "R1" ></td>
&nb



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.