Jan 16th, 2012, 12:36 PM
Hi, first just want to say i am really enjoying using form tools.
I was wondering if anyone has had success adding a checkbox to a form that will add a subscriber to an external newsletter list
( Campaign Monitor in this case )
A test worked using the Campaign Monitor API and adding this code to process.php
$result = $cm->subscriberAdd('joe@notarealdomain.com', 'Joe Smith');
But i am unsure where this code should go and how to get the values for email and name from my form. Also, I would need to check if the "subscribe" checkbox is checked.
Obviously, I am just starting to learn PHP, but was wondering if anyone could point me in the right direction!
Thanks
I was wondering if anyone has had success adding a checkbox to a form that will add a subscriber to an external newsletter list
( Campaign Monitor in this case )
A test worked using the Campaign Monitor API and adding this code to process.php
$result = $cm->subscriberAdd('joe@notarealdomain.com', 'Joe Smith');
But i am unsure where this code should go and how to get the values for email and name from my form. Also, I would need to check if the "subscribe" checkbox is checked.
Obviously, I am just starting to learn PHP, but was wondering if anyone could point me in the right direction!
Thanks