actully, now that i'm looking over it.... where are you passing the query string??? i think you have to have the $ENV{QUERY_STRING} somewhere in there..... and i dont think i see it, yeah... i dont see how your information would get from the form to your script.... as long as your submit button has the submit type, and your form has the post method you can use the environment varialbe QUERY_STRING then you have to parse it out and write it to your database... give this a try...
http://www.cgi101.com/learn/ch3/text.html
if i'm completly off base, sorry...