Forum Moderators: open
In order for it to save to db i have to use the post option instead of the get
No you don't. It's the query results that matter, not the method of the form submission.
Once you have the query, you can do an "INSERT...SELECT" type of statement which will insert all the rows from your query into the database.
The method has nothing to do with it.
<%
variable1 = Request.form("field_name1")
variable2 = Request.form("field_name2")
%>
(Use Request.querystring if your values are sent in the querystring.)
Then you would connect to your database, check with your setup to see what database type you are using and if you have a DSN setup.
After connecting to the database you would use SQL to enter the values into the database:
<%
theSQL = "insert into table_name (value1, value2) values ('" & variable1 & "', '" & variable2 & "');"
DBconnection.Execute(theSQL)
%>
There you go, values inserted into the database. You will need to search for how to connect to your database type, there are tons of resources online for learning that part.
<<<<<It is this bit here that i am stuck>>>>
<form>
Bla
</form>