It has actually been working before, but I am doing something wrong now, and I just can't see it...
I can update database without any problems, but I can't get it to show the text in the editor. I can show the text on any other place by writing
With Kind Regards Susanne
I can update database without any problems, but I can't get it to show the text in the editor. I can show the text on any other place by writing
Response.Write rs("tekst") & "<br>", but not in the editor... Someone please help....
elseif pageid = 1 then tekst = request.form("FCKeditor1") if request.ServerVariables("CONTENT_LENGTH") >0 then if request("ok") = "Ret forside" then strSql = "UPDATE indhold set tekst = ('"&tekst&"') WHERE pid = ('"&myindhold&"')" Conn.execute(strSql) response.write "Siden er opdateret klokken " & Time & "<br /><br />" End if End if strSql = "select * from indhold WHERE pid = ('"&myindhold&"')" Set rs = Conn.execute(strSql) <form action="default.asp?pageid=1" method="post"> <% Set oFCKeditor = New FCKeditor oFCKeditor.BasePath = "FCKeditor/" oFCKeditor.Value = rs("tekst") oFCKeditor.Create "FCKeditor1" %> <input type="submit" name="ok" value="Ret forside" /> </form> Conn.Close Set Conn = Nothing
With Kind Regards Susanne