A simple chat try the source code! Two

Source: Internet
Author: User
Source Code recieve.asp

<% Kname=request. FORM ("Usname")
Kpassword=request. FORM ("Uspassword")
DBPath = SERVER. MapPath ("Chat.mdb")
Set conn = Server.CreateObject ("ADODB. Connection ")
Conn.Open "Driver={microsoft Access driver (*.mdb)};d bq=" & DBPath
SET Rs=conn. EXeCUTE ("SELECT Name,password from Chat") ' WHERE name= ' &kname)
IF RS. EOF THEN
CONN. EXECUTE (INSERT into chat (Name,password) VALUES ("&KNAME&", "&KPASSWORD&") ")
ELSE IF RS. FIELDS ("PASSWORD") <>kpassword THEN
Response.Write "Wrong Password"
End IF
End IF
%>
<frameset rows= "70%,30%" >
<frame src= "forum.asp" name= "main"
Marginwidth= "1" marginheight= "1" noresize >
<frame src= "Frft.asp?kname=
"Name=" Footnotes "marginwidth=" 1 "
marginheight= "1" noresize >
</frameset >



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.