Jeg henter jo sådan her:
<!--#include file="common.asp" -->
<!--#include file="includes/emoticons_inc.asp" -->
<%
'Set the response buffer to true as we maybe redirecting
Response.Buffer = True
Dim strMessage 'Holds the Users Message
'Make sure this page is not cached
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "No-Store"
'Read in the posted message
strMessage = Request.Form("Message")
'If there is nothing to preview then say so
If strMessage = "" OR IsNull(strMessage) OR (InStr(1, strMessage, "<br>", 1) = 1 AND Len(strMessage) = 8) Then
strMessage = "<br /><br /><div align=""center"">" & strTxtThereIsNothingToShow & "</div><br /><br />"
End If
%>
<html>
<head>
<title>Visning af Text</title>
<HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<!-- Web Wiz Rich Text Editor ver. <% = strRTEversion %> is written and produced by Bruce Corkhill ©2002-2004
If you want your own Rich Text Editor then goto
http://www.richtexteditor.org -->
<link href="includes/default_style.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#FFFFFF" text="#000000" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" OnLoad="self.focus();">
<table width="100%" border="0" cellspacing="0" cellpadding="1" align="center" height="53">
<tr>
<td align="center" height="17"><span class="heading"><% = strTxtDisplayMessage %></span></td>
</tr>
</table>
<table width="98%" border="0" cellspacing="0" cellpadding="1" bgcolor="#000000" align="center">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="#FFFFFF" height="147">
<tr>
<td class="text" valign="top">
<!-- Message body -->
<% = strMessage %>
<!-- Message body ''"" -->
</td>
</tr>
</table>
</td>
</tr>
</table>
<div align="center">
<br />
<%Dim ADO_Connection
Dim SQL_STRING
Dim rsEditPage
set ADO_Connection = server.Createobject("ADODB.Connection")
ADO_Connection.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("../../../cgi-data/db.mdb")
Set rsEditPage= Server.CreateObject("ADODB.Recordset")
SQL_STRING= "SELECT * FROM PAGE WHERE ID=" & TextStreng
rsEditPage.open SQL_String, ADO_Connection
rsEditPage.CursorType = 2
rsEditPage.LockType = 3
rsEditPage.Open strSQL, adoCon
rsEditPage.Fields("text") = strMessage
rsAddPage.Update
rsAddPage.Close
Response.Redirect "menu_edit.asp"
%>
</div>
</body>
</html>