Jag vill att HTML inte ska funka på den här sidan då det kommer en text från en databas men jag vill att typ bara såna html koder som jag har [replace] på ska funka. Som på lunarstorms krypin när man ska göra sin lilla sida och använder [BOX] istället för <td> osv.HTML.encode
<!-- #include file="adovbs.inc" -->
<LINK REL=stylesheet HREF="style.css" TYPE="text/css">
<%
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & server.mappath ("db/gb.mdb")
Set RecSet = Server.CreateObject("ADODB.Recordset")
Addera = "Select * From gb Where tillID = "&Request.QueryString("tillID") &" Order By Datum DESC"
RecSet.Open Addera, Connect, adOpenStatic, adLockOptimistic
%>
<table cellspacing="0" width="410">
<tr>
<td class="boxlooktop" width="410"><p align="center"><b>MESSAGES</b></p>
</tr>
</table>
<table width="584" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="400" class="boxlook">
<% do until recset.EOF %>
<table border="0" width="100%" cellspacing="1" cellpadding="0"><tr>
<td height="10" width="100%"> " target="front"><%=RecSet("namn")%> |
">Svara | ">Delete | <%=RecSet("datum")%>
</td></tr><tr valign="top"><td width="100%">
<table border="0" width="100%" cellspacing="0" cellpadding="2"><tr><td>
" target="front">" width="35" align="left" height="45" border="1"><%=RecSet("text")%>
</td></tr></table>
</td></tr></table><br>
<%
RecSet.MoveNext
Loop
RecSet.Close
Connect.Close
Set RecSet = nothing
Set Connect = nothing
%>
</td>
</td>
<td width="165" align="right" rowspan="2">
<table>
<tr>
<td>
<table cellspacing="0">
<tr>
<td class="boxlooktop" width="165"><p align="center"><b>MESSAGE</b></p>
</tr>
</table>
<table width="165" cellpadding="4" cellspacing="0">
<tr>
<td width="155" class="boxlook" align="center">
<form name="form1" method="post" action="gb_spara.asp?tillID=<%=Request.QueryString("tillID")%>">
<input type="hidden" name="Bild" value="<%=Session("Bild")%>">
<textarea name="text" cols="25" rows="4"></textarea>
<div align="center"><input type="submit" name="Submit" value="Send"></div>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>