How to get name and email value from a custom form and add it to campaign monitor subscriber list?

You will have to use the Campaign Monitor Api:

http://campaignmonitor.github.io/createsend-php/

Or if you only use it for newsletter sign up, you can use a plugin:
https://wordpress.org/plugins/search.php?q=campaign+monitor