Posting to a sql database from Flash form?

Hi finding it hard to find out how to do this I know it’s possible with the help of our little friend php.

At the moment I use php to post it to my e-mail address however it would be much better if I could post it a sql database. I can set-up databases easy enough with my host. I have a little knowledge of all this I have set up basic add and display pages for php and sql before but would like to apply it to a flash form.

Just not sure how to do it seems to be a lot about displaying from a database but not posting to so any help would be fab.