<!-- #include file="adovbs.inc" -->
<%
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=C:\data\Webdata\news.mdb"
Set RecSet = Server.CreateObject("ADODB.Recordset")
Addera = "SELECT * FROM Rubrik"
RecSet.Open Addera, Connect, adOpenStatic, adLockOptimistic
RecSet.Update
RecSet("Swe_Rubrik") = Request.Form("Swe_Rubrik")
RecSet("Fin_Rubrik") = Request.Form("Fin_Rubrik")
RecSet.Update
RecSet.Close
Connect.Close
'un-comment this line to point to your desired confirm page
Response.Redirect("news.asp")
'tell the user their account is added
Response.Write("News updated")
%>
Ser väl helt OK ut, men vad jag vill är att få dom här 2 filerna till en ASP fil, det går väl nog?
------------------
His Divine Shadow is the most despicable being ever created, short and to the point.
If Request.Querystring("Action") = "Show" Then
Kod på sidan som visar grejjerna
Else If Request.Querystring("Action") = "Update" Then
Kod på sidan som uppdaterar
End If
Sen anropar du sidorna genom update.asp?Action=Show
eller update.asp?Action=Update
------------------
Real mad hiphop flavaz kickin' it right from tha street without no FEAR, Yo !