Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBen Parisi
189 PointsAdding MailChimp Post to existing HTML form
I have a form written in PHP and HTML that allows visitors to input information to register a new account for my service. When the user clicks "Register" the form data get's sent off to my database through an "if(isset($_POST["submit"]))" check, and the new user is logged in and redirected to the members page. Among other fields, the information that gets sent to my database includes the visitor's name and email. Can I add somewhere to my PHP code within the "if(isset($_POST["submit"]))" statement a way to also add that info to MailChimp? Example code would be much appreciated. Thanks.