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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)