i have basicly copied the tutorial for writting to a database with asp on this website... and it half works literally!
A new record is created when the form is submitted but there is no data
in the fields! how can this happen!?! here is my code that writes to
the database...
<%
'Dimension variables
Dim adoCon 'Holds the Database Connection Object
Dim rsAddComments 'Holds the recordset for the new record to be added
Dim
strSQL
'Holds the SQL query to query the database
'Create an ADO connection object
Set adoCon = Server.CreateObject("ADODB.Connection")
'Set an active connection to the Connection object using a DSN-less connection
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("flashdb.mdb")
'Create an ADO recordset object
Set rsAddComments = Server.CreateObject("ADODB.Recordset")
'Initialise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT tblFlashinfo.Author, tblFlashinfo.Author_Link,
tblFlashinfo.Title, tblFlashinfo.Entry_Type, tblFlashinfo.Height,
tblFlashinfo.Width, tblFlashinfo.Description, tblFlashinfo.File_Name
FROM tblFlashinfo;"
'Set the cursor type we are using so we can navigate through the recordset
rsAddComments.CursorType = 2
'Set the lock type so that the record is locked by ADO when it is updated
rsAddComments.LockType = 3
'Open the recordset with the SQL query
rsAddComments.Open strSQL, adoCon
'Tell the recordset we are adding a new record to it
rsAddComments.AddNew
'Add a new record to the recordset
rsAddComments.Fields("Author") = Request.Form("Author")
rsAddComments.Fields("Author_Link") = Request.Form("Author_Link")
rsAddComments.Fields("Title") = Request.Form("Title")
rsAddComments.Fields("Entry_Type") = Request.Form("Entry_Type")
rsAddComments.Fields("Height") = Request.Form("Height")
rsAddComments.Fields("Width") = Request.Form("Width")
rsAddComments.Fields("Description") = Request.Form("Description")
rsAddComments.Fields("File_Name") = Request.Form("File_Name")
'Write the updated recordset to the database
rsAddComments.Update
'Reset server objects
rsAddComments.Close
Set rsAddComments = Nothing
Set adoCon = Nothing
'Redirect to the guestbook.asp page
Response.Redirect "guestbook.asp"
%>
have i done something wrong or is it something messing me about?

