På vilken rad är felet?
har tänkt använda en chat... men jag får ett felmeddelande när jag försöker testa det, jag får meddelande om fel i
default.asp
<% Response.Buffer = true %>
<html>
<head>
<title>Cafe Entrance</title>
</head>
<body bgcolor="#FFFFFF">
<% If trim(Request.Form("name")) = "" Then %>
<h1>Welcome to the Cafe</h1>
The Cafe is a casual gathering place to meet new friends and
chat with old ones.<p>
To enter the Cafe, type the name you wish to use below and
click the button.<p>
<form action="default.asp" method="POST">
<p>Your Name: <input type="text" size="20" name="Name"></p>
<p><input type="submit" name="Submit"
value="Take Me To The Cafe"></p>
</form>
<%
Else
If Not IsObject(Application("users")) Then
Application.Lock
Set Application("users") = _
Server.CreateObject("Scripting.Dictionary")
Application.Unlock
End If
Session("name") = Request.Form("name")
Application.Lock
Application("users").Add Session("name"), time
Application.Unlock
If not IsEmpty(Application("conversation")) Then
Application.Lock
Application("conversation") = "<b><i>" & Session("name") & _
" Enters The Room</b></i><br>" & Application("conversation")
Application.Unlock
End If
Response.Redirect "cafe.asp"
End If
%>
</body>
</html>
hoppas ni kan hjälpa mig :)
