Add User to Announcement list on site registration

First off, Please forgive my ignorance this is my first time integrating a mailing list such as dreamhosts on my site. I am looking to make it so that when a user registers for my site ( needs First name, last name, email, password) they are added to my dreamhost announcement list (assuming that the check box to enroll them is selected). What is the best way to implement this?

Currently, after input cleansing, I tried to use AJAX (jQuery) to post to , then submit my form to my DB and carry on as needed. However this proves to not work. Any one have any suggestions on how to do this?

Thank you in advance

Modify your script to use the DreamHost API