Picco you have to create database connection and execute the query.I think you are beginner in ASP.
Below is the code.
<%
adv_book_time = Trim(Request.Form(adv_book_time))
If adv_book_time <> ""
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.ConnectionString = "DSN=UrDSNName;UID=sa"
OConn.Open
string strSql ="INSERT INTO company(adv_book_time) VALUES('" & adv_book_time & "');"
oConn.Execute strSql
oConn.Close
End If
%>
|