yes. this is pretty standard stuff. just do it like this.
'set the session variable like this
session("myvar") = request("myhiddenformfield")
'insert a record into a db
set conn = createobject("adodb.connection")
sql = "insert into (a,b,c) values ('a','b','c')"
put it all in the one asp page or sub or whatever and it'll work fine.