Redirection Problem

Hello friends,
Recenty i have started working on flash MX.I am new to this forum also.
I have designed a flash registration page,after entering the details and clicking on the submit button i am redirecting it to a HTML page.HTML page is similar to the flash registration page.
This HTML page is hosted in sm application,through the getURL method i am passing all the field values to the HTML registartion page.These fields get populated in the HTML page.
In the hosted HTML page i have a submit button on clicking of this the user is redirected to the login page and the datas are stored in a database.
My problem is can i redirect to login page and also store the data in database.How can i use the HTML registartion page submit buttons action in action script so that i am redirected to loging page.

Can any one help me
Thanks in advance.