I'm new to classic asp and i'm completely stuck on inserting values into an SQL database when a user clicks on a submit button. So far I've got the following which hopefully isn't a million miles away. Appreciate any help given. I've checked the names of the tables and columns. I feel like i may be missing out a connection, but i've got select statements that bring back ID's from the database no problem.
Thanks
<%
getSub = Request.Form("Submit")
if getSub = "Register" then
Set rsTmp = Server.CreateObject("ADODB.Recordset")
SQL = "INSERT INTO tb_table1 (tbtable1_id)"
SQL = SQL & " VALUES ('1')"
rsTmp.Open SQL
rsTmp.Close
End if
%>