欢迎光临
我们一直在努力

一个简单的聊天试的源代码!(二)

建站超值云服务器,限时71元/月

recieve.asp

<html>
<% 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)};dbq=" & 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 >
</html>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 一个简单的聊天试的源代码!(二)
分享到: 更多 (0)