Add User to Announcement list on site registration


#1

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 http://scripts.dreamhost.com/add_list.cgi , 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
-Andrew


#2

Modify your script to use the DreamHost API