The connection string is fine because I'm using it on an asp page to view the database contents and it runs a treat.
What I have done is create a HTML page with a form on it called Guest_entry.htm. The action on the form is /Guest_confirm.asp and the method is post. Guest_confirm.asp has a simple message on it and this code behind it to write to the database details collected from the form on Guest_entry.htm:
<<A href="mailto:%@LANGUAGE="VBSCRIPT">%@LANGUAGE="VBS CRIPT" CODEPAGE="1252"%>
<%Set DBConnection=Server.Createobject("ADODB.Connection ")
DBConnection.Open "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("db/Source.mdb") & ";"
varname = Request.QueryString("Name")
varemail = Request.QueryString("E-mail")
varmessage = Request.QueryString("Message")
SQLQuery="INSERT INTO Source (Name,E-mail,Message) VALUES"
SQLQuery=SQLQuery & "('" & varname & "', '" & varemail & "', '" & varmessage & "')"
set recsetado=DBConnection.Execute(SQLQuery)
dbconnection.close
set dbconnection=nothing %>
To be honest I'm at a bit of a loss 
|