hej medions
jeg kan ikke få det til at funke rigtig, her er mit script:
SQL = "Select * From script Where id = "&idet&""
set rs = Connect.Execute (SQL)
temp = rs("indhold")
temp2 = Replace(temp, ">", ">")
temp3 = Replace(temp2, "<", "<")
temp4 = Replace(temp3, ">", "<font color='#0033FF'>></font>")
temp5 = Replace(temp4, "<", "<font color='#0033FF'><</font>")
temp6 = Replace(temp5, "%", "<font color='#FF0000'>%</font>")
StrScript = Replace(temp6,chr(13),"<br>")
'response.write StrScript
strLinje = StrScript
If Left(strLinje,1) = "'" Then
Response.Write("BLÅ - " & strLinje & " - BLÅ")
Else
Response.Write("<td>" & strLinje & "</td>")
End If
%>
Teksten den skriver ud er :
<%
dim u_file,g_file
' Get the address of the reffering page
u_file = request.servervariables("http_referer")
' If there is no referring page then redirect to My.Yahoo.com
if u_file = "" then
response.redirect "
http://my.yahoo.com"response.end
end if
' If there is a referring page then check where it cam from
' Split the referring url by /
' a typical address will split like this
' g_file(0)=http:
' g_file(1)=
' g_file(2)=www.codeave.com or codeave.com
' g_file(3)=Any further subdirectories off the root directory in the request
g_file=split(u_file,"/")
' Compare the host name to the host of the referring page
if (trim(g_file(2) <> request.servervariables("http_host"))) then
response.write g_file(2)
response.redirect "
http://www.yahoo.com"response.end
else %>
Men den går altid i Else sætningen
Response.Write("<td>" & strLinje & "</td>")