Can someone check this??? please.

Results 1 to 2 of 2

Thread: Can someone check this??? please.

  1. #1
    Join Date
    Dec 1969
    Posts
    227

    Default Can someone check this??? please.

    I found this code for a chat room in a book and the line.<BR>set Application("users") = _<BR>is having problems. Please that a look at the this page.<BR>&#060;% <BR>Response.Buffer = true <BR>%&#062;<BR>&#060;HTML&#062;<BR>&#060;head&#062 ;<BR>&#060;/head&#062;<BR>&#060;body&#062;<BR>&#060;%<BR>If trim(Request.Form("name")) = "" Then %&#062;<BR>Welcome<BR>&#060;FORM action="opage.asp" method="post"&#062;<BR>&#060;INPUT type="text" name="name"&#062;<BR>&#060;INPUT type="submit" name="submit"&#062;<BR>&#060;/form&#062;<BR>&#060;%<BR>else<BR>If not IsObject(Application("users")) Then<BR>Application.Lock<BR>set Application("users") = _<BR>Server.CreateObject("Scripting.Dictionary")<B R>Application.UnLock<BR>End If<BR><BR>Session("name") = Request.Form("name")<BR><BR>Application.Lock<BR>Ap plication("users").add Session("name"), time<BR>Application.Unlock<BR>If not IsEmpty(Application("conversation")) Then<BR>Application.Lock<BR>Application("conversat ion") = "&#060;B&#062;&#060;I&#062;" & _<BR>Session("name") & _<BR>" Enters The Room&#060;/B&#062;&#060;/I&#062;<BR>" & _<BR>Application.UnLock<BR>End If<BR><BR>Response.redirect "cafe.asp"<BR>End If<BR><BR>%&#062;<BR>&#060;/body&#062;<BR>&#060;/html&#062;<BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    172

    Default RE: Can someone check this??? please.

    set Application("users") = _<BR>Server.CreateObject("Scripting.Dictionary") <BR><BR>should be <BR><BR>set Application("users") = Server.CreateObject("Scripting.Dictionary")<BR><BR >and <BR><BR>Application("conversation") = "&#060;B&#062;&#060;I&#062;" & _<BR>Session("name") & _<BR>" Enters The Room&#060;/B&#062;&#060;/I&#062;<BR>" & _<BR><BR>should be<BR><BR>Application("conversation") = "&#060;B&#062;&#060;I&#062;" & Session("name") & " Enters The Room&#060;/B&#062;&#060;/I&#062;" & &#060;think some text is missing here&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •