hur får jag så att det står session("username") har joinat chattet?
så här ser koden ut:
<%
strUser = "<b>" & session("username") &"</b>: "
strMessage = Server.HTMLEncode(TRIM(Request.Form("message")))
' // Her rydes Chat loggen, hvis den overstiger 10000 karakter
If Len(Application("ChatLog")) > 10000 Then
Application.Lock
Application("ChatLog") = ""
Application.UnLock
End If
If Request.Form("Action") = "Skicka" Then
If Len(strMessage) > 0 Then
strChatContent = strUser & strMessage & "<br>" & Application("ChatLog")
Application.Lock
Application("ChatLog") = strChatContent
Application.UnLock
End If
End If
Response.Write Application("ChatLog")%>
gjorde nästan samma sak fast
det funkade inte den uppdatera så att det kom ut jboy_87 joinar hela tiden!! nix funkar inte står jboy_87 joinar hela tiden när sidan uppdateras
IF Request.Querystring("tillid") = "chat" THEN
Application.Lock
Application("ChatLog") = "<Font color='#008000'><b>" & session("username") & ":</b> har just stigit in i chattet.</Font><br>" & Application("ChatLog")
Application.UnLock
end if