Ciao,
per la rete ho trovato questo script asp
ma mi restituisce questo errorecodice:<html> <head> <title>ASP Chat Box</title> <META http-equiv="refresh" content="5"> </head> <body> <% if request.Form("func") = "Send" then nickName = trim(request.Form("nickName")) nickName = replace(nickName, "'", "''") chatBox = trim(request.Form("chatBox")) chatBox = replace(chatBox, "'", "''") session("nickName") = nickName Set objFlSys = Server.CreateObject("Scripting.FileSystemObject") chatFile = Server.MapPath ("chatlog.txt") Set objStreamOutput= objFlSys.OpenTextFile (chatFile, 8, TRUE) ipaddr=Request.ServerVariables("REMOTE_ADDR") & " : " objStreamOutput.Write "" & nickName & ":" objStreamOutput.WriteLine chatBox & " " & vbnewline Set objStreamOutput = Nothing end if Set objFlSys = Server.CreateObject("Scripting.FileSystemObject") chatFile = Server.MapPath ("chatlog.txt") Set objStreamInput = objFlSys.OpenTextFile (chatFile, 1, False, False) Response.Write objStreamInput.ReadALL & " " Set objStreamInput=Nothing %> <form action="asp_chat_box.asp" method="post" > Nickname : <input name="nickName" value="<%=session("nickName")%>"/> Message : <textarea cols="60" rows="4" name="chatBox"></textarea> <input type="submit" name="func" value="Send"/> </form> </body> </html>
sinceramente non ho capito cosa devo fare per risolvere il problema, mi potreste aiutare?codice:Microsoft VBScript runtime error '800a003e' Input past end of file /asp_chat_box.asp, line 31

Rispondi quotando

