ny post + ny side
Scriptet tilføjer en ny post hver gang banneret aktiveres, men den der skal samtidig åbne en ny side www.NySide.dk i et nyt vindue.Hvordan laver man det? Det skal være UDEN brug af JavaScript!!!
<%
Dim objConnB, objRSB, DSNNameB, strConnB, strSQLB
Set objConnB = Server.CreateObject("ADODB.Connection")
strConnB = "Data Source=mdsfdbx;User ID=;Password=;"
objConnB.Open strConnB
If(Request.QueryString("klik") = "1") Then
strSQLB = "INSERT INTO bannerhits (tid) VALUES "
strSQLB = strSQLB & "('200')"
objConnB.Execute (strSQLB)
End If
strSQLB = "SELECT * FROM bannerlist"
Set ObjRSB = objConnB.Execute(strSQLB)
Response.Write "<a href=banner.asp?klik=1><img src='" & objRSB("banner") & "' border = '0'></a>"
objConnB.Close
Set strConnB = Nothing
Set objConnB = Nothing
%>
