Her er en kode, hvor bruger indskriver nyhed...
---
<%
Dim rsSave
If Request.ServerVariables ("Content_Length") <> 0 Then
'Creating the Recordset Object
Set rsSave = Server.CreateObject("ADODB.RecordSet")
'Creating a DSN-Less connection to your Database
strDSN = "Driver={Microsoft Access Driver (*.mdb)};" & "DBQ=d:\home\nfknetdk\db\nfk.mdb;"
rsSave.open "nyhed", strDSN, adOpenDynamic, adLockOptimistic, adCmdTable
rsSave.addnew
rsSave("dato") = Date
rsSave("Overskrift") = request.form("Overskrift")
rsSave("Tekst") = request.form("Tekst")
rsSave("Forfatter") = request.form("forfatter")
rsSave("email") = request.form("email")
rsSave.update
response.redirect("forside2.asp")
'response.redirect "
www.nfknet.dk" target="_top"
Else
%>
---
Hvor skal koden indsættes
MK