in reply to writing to a mysql database

There are some database tutorials in the Tutorials section. The main things you need to do are: There's nothing Perl-specific about this. Do you know SQL? Here's a tutorial.

You should also read the MySQL docs and the DBI docs.

Oh, and you'll need to get the data from the HTML form... but I assume you're using CGI.pm, so that's not an issue.