<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>mailchimp Archives - Michael Sunarlim</title>
	<atom:link href="https://sunarlim.com/tag/mailchimp/feed/" rel="self" type="application/rss+xml" />
	<link>https://sunarlim.com/tag/mailchimp/</link>
	<description>Random blurbs about web development, e-commerce and technology</description>
	<lastBuildDate>Fri, 19 Mar 2021 20:03:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.5</generator>

<image>
	<url>https://i0.wp.com/sunarlim.com/wp-content/uploads/2016/07/cropped-MS_Square_512x512.png?fit=32%2C32&#038;ssl=1</url>
	<title>mailchimp Archives - Michael Sunarlim</title>
	<link>https://sunarlim.com/tag/mailchimp/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">30613895</site>	<item>
		<title>MailChimp Subscribe Form with PHP, jQuery and AJAX (API 3.0)</title>
		<link>https://sunarlim.com/2017/01/mailchimp-subscribe-form-php-jquery-api3/</link>
					<comments>https://sunarlim.com/2017/01/mailchimp-subscribe-form-php-jquery-api3/#comments</comments>
		
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Mon, 09 Jan 2017 06:48:18 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[mailchimp]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">https://sunarlim.com/?p=2591</guid>

					<description><![CDATA[<p>By popular demand, I updated my code and posted it as new GitHub repository that utilizes newer MailChimp API 3.0. Please read the tutorial below to create AJAX based MailChimp subscribe form on your PHP website with a little jQuery knowledge. Original post using (older and no longer supported) MailChimp API 1.0 can be found here. What... <span class="more"><a class="more-link" href="https://sunarlim.com/2017/01/mailchimp-subscribe-form-php-jquery-api3/">Continue reading <span class="meta-nav">&#8594;</span></a></span></p>
<p>The post <a href="https://sunarlim.com/2017/01/mailchimp-subscribe-form-php-jquery-api3/">MailChimp Subscribe Form with PHP, jQuery and AJAX (API 3.0)</a> appeared first on <a href="https://sunarlim.com">Michael Sunarlim</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>By popular demand, I updated my code and posted it as <a href="https://github.com/sunarlim/mailchimp-subscribe-api-v3" target="_blank" rel="noopener">new GitHub repository</a> that utilizes newer MailChimp API 3.0. Please read the tutorial below to create AJAX based MailChimp subscribe form on your PHP website with a little jQuery knowledge.</p>
<p>Original post using (older and no longer supported) MailChimp API 1.0 can be found <a href="https://sunarlim.com/2014/04/mailchimp-sign-form-php-jquery-ajax/">here</a>.</p>
<h3>What this code does</h3>
<ul>
<li>Validate field contents</li>
<li>Pass the form submission to MailChimp and add the record to your list</li>
<li>Basic fallback method for very, very old browser or does not have JavaScript activated</li>
<li>Very customizable and easily expandable, depending on your requirements</li>
<li>jQuery and jQuery Validation plugin called from CDNJS to keep number of files to maintain at minimal</li>
</ul>
<p><span id="more-2591"></span></p>
<h3>Tools/Credits</h3>
<ol>
<li><a title="jQuery" href="http://jquery.com/" target="_blank" rel="noopener">jQuery</a></li>
<li><a title="jQuery Validation" href="http://jqueryvalidation.org/" target="_blank" rel="noopener">jQuery Validation Plugin</a></li>
<li><a title="MailChimp API Wrappers" href="https://github.com/drewm/mailchimp-api" target="_blank" rel="noopener">MailChimp API v3 PHP Wrapper</a></li>
</ol>
<h3>MailChimp API Key and List ID</h3>
<p>Below we start, we need to generate public API key from your MailChimp account and also identify your list ID. If you are not sure how to retrieve those, follow these links from MailChimp Knowledge Base to <a title="MailChimp - Finding or generating your API key" href="http://kb.mailchimp.com/accounts/management/about-api-keys#Finding-or-generating-your-API-key" target="_blank" rel="noopener">retrieve your account&#8217;s API key</a> and <a title="MailChimp - Find Your List ID" href="http://kb.mailchimp.com/lists/managing-subscribers/find-your-list-id" target="_blank" rel="noopener">find your list ID</a>.</p>
<h4>The Form Page (index.php)</h4>
<p>jQuery will handle the AJAX using <span class="lang:js decode:true crayon-inline">$.post</span>  method and jQuery Validation plugin will validate the field values including email address format.</p>
<p>For this example, I am including first name and last name as part of the form fields. Feel free to make adjustments as required. Although keep in mind after changing the form fields, you may also need to adjust the <span class="lang:default decode:true crayon-inline">subscribe.php</span>  file too.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="html" data-enlighter-linenumbers="false">&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;MailChimp (API v3) Sign-Up Form&lt;/title&gt;
  &lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.16.0/jquery.validate.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
    $(document).ready(function() {
      // jQuery Validation
      $("#signup").validate({
        // if valid, post data via AJAX
        submitHandler: function(form) {
          $.post("subscribe.php", { fname: $("#fname").val(), lname: $("#lname").val(), email: $("#email").val() }, function(data) {
            $('#response').html(data);
          });
        },
        // all fields are required
        rules: {
          fname: {
            required: true
          },
          lname: {
            required: true
          },
          email: {
            required: true,
            email: true
          }
        }
      });
    });
  &lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
  &lt;div id="wrapper"&gt;
    &lt;form id="signup" class="formee" action="subscribe.php" method="post"&gt;
      &lt;fieldset&gt;
        &lt;legend&gt;Sign Up&lt;/legend&gt;
        &lt;div&gt;
          &lt;label for="fname"&gt;First Name *&lt;/label&gt; &lt;input name="fname" id="fname" type="text" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;label for="lname"&gt;Last Name *&lt;/label&gt; &lt;input name="lname" id="lname" type="text" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;label for="email"&gt;Email Address *&lt;/label&gt; &lt;input name="email" id="email" type="text" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;input class="right inputnew" type="submit" title="Send" value="Send" /&gt;
        &lt;/div&gt;
      &lt;/fieldset&gt;
    &lt;/form&gt;
    &lt;div id="response"&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h4>Form Processor <em>(subscribe.php)</em></h4>
<p>I try to include as much comment as possible to make the code self explanatory.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="php" data-enlighter-linenumbers="false">&lt;?php

  // Put your MailChimp API and List ID hehe
  $api_key = 'ENTER_YOUR_API_KEY_HERE';
  $list_id = 'ENTER_YOUR_LIST_ID_HERE';

  // Let's start by including the MailChimp API wrapper
  include('./inc/MailChimp.php');
  // Then call/use the class
  use \DrewM\MailChimp\MailChimp;
  $MailChimp = new MailChimp($api_key);

  // Submit subscriber data to MailChimp
  // For parameters doc, refer to: http://developer.mailchimp.com/documentation/mailchimp/reference/lists/members/
  // For wrapper's doc, visit: https://github.com/drewm/mailchimp-api
  $result = $MailChimp-&gt;post("lists/$list_id/members", [
              'email_address' =&gt; $_POST["email"],
              'merge_fields'  =&gt; ['FNAME'=&gt;$_POST["fname"], 'LNAME'=&gt;$_POST["lname"]],
              'status'        =&gt; 'subscribed',
            ]);

  if ($MailChimp-&gt;success()) {
    // Success message
    echo "&lt;h4&gt;Thank you, you have been added to our mailing list.&lt;/h4&gt;";
  } else {
    // Display error
    echo $MailChimp-&gt;getLastError();
    // Alternatively you can use a generic error message like:
    // echo "&lt;h4&gt;Please try again.&lt;/h4&gt;";
  }
?&gt;</pre>
<h3>Download</h3>
<p><a href="https://github.com/sunarlim/mailchimp-subscribe-api-v3/archive/master.zip">Click here to download</a> the basic files to create MailChimp subscribe form on your website. Alternatively, you can also <a href="https://github.com/sunarlim/mailchimp-subscribe-api-v3" target="_blank" rel="noopener">visit the GitHub repository</a>.</p>
<h3>Coming Soon Templates</h3>
<p>The MailChimp subscribe form example only includes basic HTML page. If you are thinking of using it for your upcoming site, and you have limited resources to create the page design, check out my list of <a title="5 Clean and Free Coming Soon Page Templates with Email Subscription Form" href="https://sunarlim.com/2014/05/5-clean-and-free-coming-soon-page-templates/">5 Clean and Free Coming Soon Page Templates</a> and <a title="ThemeForest &gt; Site Templates &gt; Specialty Pages &gt; Under Construction" href="http://themeforest.net/category/site-templates/specialty-pages/under-construction?ref=mayksyu" target="_blank" rel="noopener">Coming Soon &amp; Under Construction Templates on ThemeForest</a>.</p>
<p>The post <a href="https://sunarlim.com/2017/01/mailchimp-subscribe-form-php-jquery-api3/">MailChimp Subscribe Form with PHP, jQuery and AJAX (API 3.0)</a> appeared first on <a href="https://sunarlim.com">Michael Sunarlim</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sunarlim.com/2017/01/mailchimp-subscribe-form-php-jquery-api3/feed/</wfw:commentRss>
			<slash:comments>38</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2591</post-id>	</item>
		<item>
		<title>Ready-to-use MailChimp PHP integration scripts</title>
		<link>https://sunarlim.com/2015/01/ready-use-mailchimp-php-integration-scripts/</link>
					<comments>https://sunarlim.com/2015/01/ready-use-mailchimp-php-integration-scripts/#respond</comments>
		
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Tue, 06 Jan 2015 08:00:33 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[mailchimp]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<guid isPermaLink="false">https://sunarlim.com/?p=1336</guid>

					<description><![CDATA[<p>I have shared a simple tutorial to integrate your web page with MailChimp subscription API. It is intended to give the most basic direction and then you can expand the design and functionalities to your preference. Some of you however might prefer to use a more &#8220;plug and play&#8221; approach. Therefore I decided to list... <span class="more"><a class="more-link" href="https://sunarlim.com/2015/01/ready-use-mailchimp-php-integration-scripts/">Continue reading <span class="meta-nav">&#8594;</span></a></span></p>
<p>The post <a href="https://sunarlim.com/2015/01/ready-use-mailchimp-php-integration-scripts/">Ready-to-use MailChimp PHP integration scripts</a> appeared first on <a href="https://sunarlim.com">Michael Sunarlim</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have shared <a title="MailChimp Subscribe Form with PHP, jQuery and AJAX" href="https://sunarlim.com/2014/04/mailchimp-sign-form-php-jquery-ajax/">a simple tutorial to integrate your web page with MailChimp</a> subscription API. It is intended to give the most basic direction and then you can expand the design and functionalities to your preference. Some of you however might prefer to use a more &#8220;plug and play&#8221; approach. Therefore I decided to list a number of (paid) scripts that would allow you to add good looking MailChimp PHP integration with minimal time required. These are not free, but definitely worth to save hours of your productive time.</p>
<hr />
<h3><a href="http://codecanyon.net/item/doomailchimp-modal-subscribe-php-class/3826800?ref=mayksyu" target="_blank">DooMailChimp Modal Subscribe</a></h3>
<p><a href="http://codecanyon.net/item/doomailchimp-modal-subscribe-php-class/3826800?ref=mayksyu" target="_blank"><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-1339" src="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/590x300.jpg?resize=590%2C300&#038;ssl=1" alt="DooMailChimp Modal Subscribe" width="590" height="300" srcset="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/590x300.jpg?w=590&amp;ssl=1 590w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/590x300.jpg?resize=300%2C153&amp;ssl=1 300w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/590x300.jpg?resize=150%2C76&amp;ssl=1 150w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/590x300.jpg?resize=400%2C203&amp;ssl=1 400w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/590x300.jpg?resize=200%2C102&amp;ssl=1 200w" sizes="(max-width: 590px) 100vw, 590px" data-recalc-dims="1" /></a><br />
Let&#8217;s start with the most simple but very effective approach. DooMailChimp allows you to add a simple button or link which when clicked will trigger a form modal box that connects to MailChimp upon submission.</p>
<hr />
<h3><a href="http://codecanyon.net/item/mailchimp-subscribe-form/7123150?ref=mayksyu" target="_blank">MailChimp Subscribe Form</a></h3>
<p><a href="http://codecanyon.net/item/mailchimp-subscribe-form/7123150?ref=mayksyu" target="_blank"><img decoding="async" class="aligncenter size-full wp-image-1341" src="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/inline_preview.jpg?resize=590%2C300&#038;ssl=1" alt="MailChimp Subscribe Form" width="590" height="300" srcset="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/inline_preview.jpg?w=590&amp;ssl=1 590w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/inline_preview.jpg?resize=300%2C153&amp;ssl=1 300w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/inline_preview.jpg?resize=150%2C76&amp;ssl=1 150w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/inline_preview.jpg?resize=400%2C203&amp;ssl=1 400w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/inline_preview.jpg?resize=200%2C102&amp;ssl=1 200w" sizes="(max-width: 590px) 100vw, 590px" data-recalc-dims="1" /></a><br />
Instead of using modal box, this script can be embedded using iframe so it stays on your web page. A good idea if you really want to draw more attention from your site&#8217;s visitors. The cool thing is they can sign up using Facebook, Hotmail, Google, LinkedIn aside from entering their email address manually.</p>
<hr />
<h3><a href="http://codecanyon.net/item/contact-form-generator-form-builder/1719810?ref=mayksyu" target="_blank">Contact Form Generator</a></h3>
<p><a href="http://codecanyon.net/item/contact-form-generator-form-builder/1719810?ref=mayksyu" target="_blank"><img decoding="async" class="aligncenter size-full wp-image-1344" src="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/590x300-cfg-17.png?resize=590%2C300&#038;ssl=1" alt="590x300-cfg-17" width="590" height="300" srcset="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/590x300-cfg-17.png?w=590&amp;ssl=1 590w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/590x300-cfg-17.png?resize=300%2C153&amp;ssl=1 300w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/590x300-cfg-17.png?resize=150%2C76&amp;ssl=1 150w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/590x300-cfg-17.png?resize=400%2C203&amp;ssl=1 400w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/590x300-cfg-17.png?resize=200%2C102&amp;ssl=1 200w" sizes="(max-width: 590px) 100vw, 590px" data-recalc-dims="1" /></a><br />
If you need more than a simple subscribe form but a complete contact form instead, this is a great form generator to make it a snap. With complete MailChimp and Aweber integration, you can create multiple forms on multiple projects in a breeze. You would still need to play with the styles though to really get the look that you prefer.</p>
<hr />
<h3><a href="http://codecanyon.net/item/layered-popups/6027291?ref=mayksyu" target="_blank">Layered Popups</a></h3>
<p><a href="http://codecanyon.net/item/layered-popups/6027291?ref=mayksyu" target="_blank"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1345" src="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/banner-1.jpg?resize=590%2C300&#038;ssl=1" alt="Layered Popups" width="590" height="300" srcset="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/banner-1.jpg?w=590&amp;ssl=1 590w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/banner-1.jpg?resize=300%2C153&amp;ssl=1 300w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/banner-1.jpg?resize=150%2C76&amp;ssl=1 150w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/banner-1.jpg?resize=400%2C203&amp;ssl=1 400w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/12/banner-1.jpg?resize=200%2C102&amp;ssl=1 200w" sizes="(max-width: 590px) 100vw, 590px" data-recalc-dims="1" /></a><br />
Another way, and probably the most effective, to collect your visitors&#8217; email addresses is by incorporating automatic popup. This script will do that for you with integration with almost every popular email service such as MailChimp, GetResponse, iContact, Campaign Monitor, AWeber, Mad Mimi, Benchmark, ActiveCampaign, Interspire and Sendy.</p>
<hr />
<p>Remember, getting new subscribers is only the first step. It is more important to actually send them engaging emails and make them happy with their decision to sign up in the first place.</p>
<p>The post <a href="https://sunarlim.com/2015/01/ready-use-mailchimp-php-integration-scripts/">Ready-to-use MailChimp PHP integration scripts</a> appeared first on <a href="https://sunarlim.com">Michael Sunarlim</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sunarlim.com/2015/01/ready-use-mailchimp-php-integration-scripts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1336</post-id>	</item>
		<item>
		<title>5 Clean and Free Coming Soon Page Templates with Email Subscription Form</title>
		<link>https://sunarlim.com/2014/05/5-clean-and-free-coming-soon-page-templates/</link>
					<comments>https://sunarlim.com/2014/05/5-clean-and-free-coming-soon-page-templates/#comments</comments>
		
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Fri, 30 May 2014 12:35:19 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[mailchimp]]></category>
		<category><![CDATA[templates]]></category>
		<guid isPermaLink="false">https://sunarlim.com/?p=1059</guid>

					<description><![CDATA[<p>Soon after I had written about creating MailChimp Sign Up Form with PHP, jQuery and AJAX, I realized something was missing. Most of you probably also need a nice page template to display your coming soon page. I have selected some really nice ones, all are free of course and have email subscription form so... <span class="more"><a class="more-link" href="https://sunarlim.com/2014/05/5-clean-and-free-coming-soon-page-templates/">Continue reading <span class="meta-nav">&#8594;</span></a></span></p>
<p>The post <a href="https://sunarlim.com/2014/05/5-clean-and-free-coming-soon-page-templates/">5 Clean and Free Coming Soon Page Templates with Email Subscription Form</a> appeared first on <a href="https://sunarlim.com">Michael Sunarlim</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Soon after I had written about creating <a title="MailChimp Sign Up Form with PHP, jQuery and AJAX" href="https://sunarlim.com/2014/04/mailchimp-sign-form-php-jquery-ajax/">MailChimp Sign Up Form with PHP, jQuery and AJAX</a>, I realized something was missing. Most of you probably also need a nice page template to display your coming soon page.</p>
<p>I have selected some really nice ones, all are free of course and have email subscription form so you can integrate with MailChimp following the tutorial. Here they are:</p>
<h3><a href="http://johnsardine.com/freebies/dl-html-css/coming-soon-page-in-css3/" target="_blank">Coming Soon Splash Page CSS3</a></h3>
<p>It cannot go any simpler than this. Just drop in your logo, place some text, put a link of your Twitter, it is ready to go.<br />
<a href="http://johnsardine.com/freebies/dl-html-css/coming-soon-page-in-css3/" target="_blank"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1060" src="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/01-Coming-Soon-Splash-Page-CSS3.png?resize=740%2C471&#038;ssl=1" alt="Coming Soon Splash Page CSS3" width="740" height="471" srcset="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/01-Coming-Soon-Splash-Page-CSS3.png?w=1058&amp;ssl=1 1058w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/01-Coming-Soon-Splash-Page-CSS3.png?resize=300%2C190&amp;ssl=1 300w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/01-Coming-Soon-Splash-Page-CSS3.png?resize=1024%2C651&amp;ssl=1 1024w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/01-Coming-Soon-Splash-Page-CSS3.png?resize=150%2C95&amp;ssl=1 150w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/01-Coming-Soon-Splash-Page-CSS3.png?resize=400%2C254&amp;ssl=1 400w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/01-Coming-Soon-Splash-Page-CSS3.png?resize=800%2C508&amp;ssl=1 800w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/01-Coming-Soon-Splash-Page-CSS3.png?resize=200%2C127&amp;ssl=1 200w" sizes="(max-width: 740px) 100vw, 740px" data-recalc-dims="1" /></a></p>
<h3><a href="http://www.blacktie.co/2014/03/counter-coming-soon-page/" target="_blank">Counter – Coming Soon Page</a></h3>
<p>For you who have something to showcase already, Counter is a great choice. Built with Bootstrap and Revolution Slider, it will amaze your audience even before your site is launched!<br />
<a href="http://www.blacktie.co/2014/03/counter-coming-soon-page/" target="_blank"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1061" src="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/02-Counter-Coming-Soon-Theme.png?resize=740%2C471&#038;ssl=1" alt="Counter Coming Soon Theme" width="740" height="471" srcset="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/02-Counter-Coming-Soon-Theme.png?w=1058&amp;ssl=1 1058w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/02-Counter-Coming-Soon-Theme.png?resize=300%2C190&amp;ssl=1 300w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/02-Counter-Coming-Soon-Theme.png?resize=1024%2C651&amp;ssl=1 1024w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/02-Counter-Coming-Soon-Theme.png?resize=150%2C95&amp;ssl=1 150w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/02-Counter-Coming-Soon-Theme.png?resize=400%2C254&amp;ssl=1 400w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/02-Counter-Coming-Soon-Theme.png?resize=800%2C508&amp;ssl=1 800w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/02-Counter-Coming-Soon-Theme.png?resize=200%2C127&amp;ssl=1 200w" sizes="(max-width: 740px) 100vw, 740px" data-recalc-dims="1" /></a></p>
<h3><a href="http://www.bootstrapstage.com/glassy/" target="_blank">Glassy &#8211; A shiny way to say &#8220;Coming Soon&#8221;</a></h3>
<p>Similar as above, a nice responsive page with image slider. A better option if you prefer a shiny instead of flat look.<br />
<a href="http://www.bootstrapstage.com/glassy/" target="_blank"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1062" src="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/03-Coming-soon-page-built-on-Twitter-Bootstrap.png?resize=740%2C471&#038;ssl=1" alt="Coming soon page built on Twitter Bootstrap" width="740" height="471" srcset="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/03-Coming-soon-page-built-on-Twitter-Bootstrap.png?w=1058&amp;ssl=1 1058w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/03-Coming-soon-page-built-on-Twitter-Bootstrap.png?resize=300%2C190&amp;ssl=1 300w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/03-Coming-soon-page-built-on-Twitter-Bootstrap.png?resize=1024%2C651&amp;ssl=1 1024w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/03-Coming-soon-page-built-on-Twitter-Bootstrap.png?resize=150%2C95&amp;ssl=1 150w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/03-Coming-soon-page-built-on-Twitter-Bootstrap.png?resize=400%2C254&amp;ssl=1 400w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/03-Coming-soon-page-built-on-Twitter-Bootstrap.png?resize=800%2C508&amp;ssl=1 800w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/03-Coming-soon-page-built-on-Twitter-Bootstrap.png?resize=200%2C127&amp;ssl=1 200w" sizes="(max-width: 740px) 100vw, 740px" data-recalc-dims="1" /></a></p>
<h3><a href="http://www.1stwebdesigner.com/css/create-coming-soon-page-using-html5-and-css3/" target="_blank">HTML5 and CSS3 Minimal Coming Soon Page</a></h3>
<p>Prefer to understand how the page is built instead of just diving into the code? This post shows how it was done.<br />
<a href="http://www.1stwebdesigner.com/css/create-coming-soon-page-using-html5-and-css3/" target="_blank"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1063" src="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/04-Minimal-Coming-Soon-Page.png?resize=740%2C471&#038;ssl=1" alt="Minimal Coming Soon Page" width="740" height="471" srcset="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/04-Minimal-Coming-Soon-Page.png?w=1058&amp;ssl=1 1058w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/04-Minimal-Coming-Soon-Page.png?resize=300%2C190&amp;ssl=1 300w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/04-Minimal-Coming-Soon-Page.png?resize=1024%2C651&amp;ssl=1 1024w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/04-Minimal-Coming-Soon-Page.png?resize=150%2C95&amp;ssl=1 150w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/04-Minimal-Coming-Soon-Page.png?resize=400%2C254&amp;ssl=1 400w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/04-Minimal-Coming-Soon-Page.png?resize=800%2C508&amp;ssl=1 800w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/04-Minimal-Coming-Soon-Page.png?resize=200%2C127&amp;ssl=1 200w" sizes="(max-width: 740px) 100vw, 740px" data-recalc-dims="1" /></a></p>
<h3><a href="http://www.ourtuts.com/paperlaunch-free-under-construction-template/" target="_blank">PaperLaunch – Free “Under Construction” Template</a></h3>
<p>This nice and fully featured template has everything you ever need to create a coming soon page in minutes. It even includes the PSD files and Ajax Subscribe Form!<br />
<a href="http://www.ourtuts.com/paperlaunch-free-under-construction-template/" target="_blank"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1086" src="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/05-PaperLaunch-Coming-Soon-Template.png?resize=740%2C486&#038;ssl=1" alt="PaperLaunch Coming Soon Template" width="740" height="486" srcset="https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/05-PaperLaunch-Coming-Soon-Template.png?w=1024&amp;ssl=1 1024w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/05-PaperLaunch-Coming-Soon-Template.png?resize=300%2C197&amp;ssl=1 300w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/05-PaperLaunch-Coming-Soon-Template.png?resize=150%2C98&amp;ssl=1 150w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/05-PaperLaunch-Coming-Soon-Template.png?resize=400%2C262&amp;ssl=1 400w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/05-PaperLaunch-Coming-Soon-Template.png?resize=800%2C525&amp;ssl=1 800w, https://i0.wp.com/sunarlim.com/wp-content/uploads/2014/05/05-PaperLaunch-Coming-Soon-Template.png?resize=200%2C131&amp;ssl=1 200w" sizes="(max-width: 740px) 100vw, 740px" data-recalc-dims="1" /></a></p>
<hr />
<h3>More Options</h3>
<p>Have not found the template you are looking for from the ones above? Well you cannot be really picky for free stuff, right? If you are willing to spend $3-10 to save a lot of your time from custom design and coding, <a href="http://themeforest.net/?ref=mayksyu" target="_blank">ThemeForest</a> has lots of great templates too. Check them out under their <a title="ThemeForest &gt; Site Templates &gt; Specialty Pages &gt; Under Construction" href="http://themeforest.net/category/site-templates/specialty-pages/under-construction?ref=mayksyu" target="_blank">Coming Soon &amp; Under Construction Template</a> category.</p>
<p>The post <a href="https://sunarlim.com/2014/05/5-clean-and-free-coming-soon-page-templates/">5 Clean and Free Coming Soon Page Templates with Email Subscription Form</a> appeared first on <a href="https://sunarlim.com">Michael Sunarlim</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sunarlim.com/2014/05/5-clean-and-free-coming-soon-page-templates/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1059</post-id>	</item>
		<item>
		<title>MailChimp Subscribe Form with PHP, jQuery and AJAX</title>
		<link>https://sunarlim.com/2014/04/mailchimp-sign-form-php-jquery-ajax/</link>
					<comments>https://sunarlim.com/2014/04/mailchimp-sign-form-php-jquery-ajax/#comments</comments>
		
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Mon, 28 Apr 2014 10:18:26 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[mailchimp]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">https://sunarlim.com/?p=1008</guid>

					<description><![CDATA[<p>I am pretty sure I have mentioned somewhere in this blog or tweets of how I love MailChimp or and would recommend it for any business wanting to untap their email marketing potential. You can start with zero investment and only start paying when you are completely confident it is very worthy. MailChimp provides a... <span class="more"><a class="more-link" href="https://sunarlim.com/2014/04/mailchimp-sign-form-php-jquery-ajax/">Continue reading <span class="meta-nav">&#8594;</span></a></span></p>
<p>The post <a href="https://sunarlim.com/2014/04/mailchimp-sign-form-php-jquery-ajax/">MailChimp Subscribe Form with PHP, jQuery and AJAX</a> appeared first on <a href="https://sunarlim.com">Michael Sunarlim</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I am pretty sure I have mentioned somewhere in this blog or tweets of how I love <strong><a title="MailChimp" href="http://mailchimp.com" target="_blank" rel="noopener">MailChimp</a></strong> or and would recommend it for any business wanting to untap their email marketing potential. You can start with zero investment and only start paying when you are completely confident it is very worthy.</p>
<p>MailChimp provides a good tool to generate your custom sign up form which will serve most requirements well. Some customers however, want a fully custom form or integrate it with existing template they already own. Today I am going to share a quick tutorial in how to integrate HTML form with MailChimp API using PHP and jQuery.</p>
<h3>MailChimp Subscribe Form Features</h3>
<p>What will it do?</p>
<ul>
<li>Validate field contents</li>
<li>Pass the form submission to MailChimp and add the record to your list</li>
<li>Basic fallback method for very, very old browser that does not have JavaScript activated</li>
<li>Five minutes setup</li>
</ul>
<p><span id="more-1008"></span></p>
<h3>Tools/Credits</h3>
<ol>
<li><a title="jQuery" href="http://jquery.com/" target="_blank" rel="noopener">jQuery</a></li>
<li><a title="jQuery Validation" href="http://jqueryvalidation.org/" target="_blank" rel="noopener">jQuery Validation Plugin</a></li>
<li><a title="MailChimp API Wrappers" href="http://apidocs.mailchimp.com/api/downloads/#php" target="_blank" rel="noopener">MailChimp PHP API Class</a></li>
</ol>
<h3>The Form Page <em>(index.php)</em></h3>
<p>jQuery will handle the AJAX using <code>$.post</code> method and jQuery Validation plugin will validate the field values including email address format.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="html" data-enlighter-linenumbers="false">&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;MailChimp Sign-Up Form&lt;/title&gt;
  &lt;script type="text/javascript" src="js/jquery-1.11.0.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/jquery.validate.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
    $(document).ready(function() {
      // jQuery Validation
      $("#signup").validate({
        // if valid, post data via AJAX
        submitHandler: function(form) {
          $.post("subscribe.php", { fname: $("#fname").val(), lname: $("#lname").val(), email: $("#email").val() }, function(data) {
            $('#response').html(data);
          });
        },
        // all fields are required
        rules: {
          fname: {
            required: true
          },
          lname: {
            required: true
          },
          email: {
            required: true,
            email: true
          }
        }
      });
    });
  &lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
  &lt;div id="wrapper"&gt;
    &lt;form id="signup" class="formee" action="subscribe.php" method="post"&gt;
      &lt;fieldset&gt;
        &lt;legend&gt;Sign Up&lt;/legend&gt;
        &lt;div&gt;
          &lt;label for="fname"&gt;First Name *&lt;/label&gt; &lt;input name="fname" id="fname" type="text" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;label for="lname"&gt;Last Name *&lt;/label&gt; &lt;input name="lname" id="lname" type="text" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;label for="email"&gt;Email Address *&lt;/label&gt; &lt;input name="email" id="email" type="text" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;input class="right inputnew" type="submit" title="Send" value="Send" /&gt;
        &lt;/div&gt;
      &lt;/fieldset&gt;
    &lt;/form&gt;
    &lt;div id="response"&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>Form Processor <em>(subscribe.php)</em></h3>
<p>Our form will connect to MailChimp with the help of <code>MCAPI.class.php</code>. Please make sure you have generated the API key of your account and copied your list ID. MailChimp&#8217;s excellent knowledge base provides the instructions in <a title="MailChimp - Finding or generating your API key" href="http://kb.mailchimp.com/accounts/management/about-api-keys#Finding-or-generating-your-API-key" target="_blank" rel="noopener">how to retrieve your account&#8217;s API key</a> and <a title="MailChimp - Find Your List ID" href="http://kb.mailchimp.com/lists/managing-subscribers/find-your-list-id" target="_blank" rel="noopener">find your list ID</a>.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="php" data-enlighter-linenumbers="false">&lt;?php
  require_once 'inc/MCAPI.class.php';
  $api = new MCAPI('ENTER_YOUR_API_KEY_HERE');
  $merge_vars = array('FNAME'=&gt;$_POST["fname"], 'LNAME'=&gt;$_POST["lname"]);

  // Submit subscriber data to MailChimp
  // For parameters doc, refer to: http://apidocs.mailchimp.com/api/1.3/listsubscribe.func.php
  $retval = $api-&gt;listSubscribe( 'ENTER_YOUR_LIST_ID_HERE', $_POST["email"], $merge_vars, 'html', false, true );

  if ($api-&gt;errorCode){
    echo "&lt;h4&gt;Please try again.&lt;/h4&gt;";
  } else {
    echo "&lt;h4&gt;Thank you, you have been added to our mailing list.&lt;/h4&gt;";
  }
?&gt;</pre>
<p>That&#8217;s it! You can now check on your web server with a few tests and see if they are captured in your MailChimp list.</p>
<h3>Download</h3>
<p>Sample files and structure of this tutorial can be <a title="Tutorial Sample Files" href="https://github.com/sunarlim/mailchimp-subscribe/archive/master.zip">downloaded here</a>. Please share this post if you find it useful using social media buttons below.</p>
<h3>Coming Soon Templates</h3>
<p>My files only include a basic HTML page. If you are thinking of using it for your upcoming site, and you have limited resources to create the page design, check out my list of <a title="5 Clean and Free Coming Soon Page Templates with Email Subscription Form" href="https://sunarlim.com/2014/05/5-clean-and-free-coming-soon-page-templates/">5 Clean and Free Coming Soon Page Templates</a> and <a title="ThemeForest &gt; Site Templates &gt; Specialty Pages &gt; Under Construction" href="http://themeforest.net/category/site-templates/specialty-pages/under-construction?ref=mayksyu" target="_blank" rel="noopener">Coming Soon &amp; Under Construction Templates on ThemeForest</a>.</p>
<hr />
<h2>UPDATE (January 9, 2017)</h2>
<p>I have published updated version of this tutorial to make use of MailChimp&#8217;s newer API 3.0. Please follow the link to read how to create <strong><a href="https://sunarlim.com/2017/01/mailchimp-subscribe-form-php-jquery-api3/">MailChimp Subscribe Form with PHP, jQuery and AJAX (API 3.0)</a></strong>.</p>
<p>The post <a href="https://sunarlim.com/2014/04/mailchimp-sign-form-php-jquery-ajax/">MailChimp Subscribe Form with PHP, jQuery and AJAX</a> appeared first on <a href="https://sunarlim.com">Michael Sunarlim</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sunarlim.com/2014/04/mailchimp-sign-form-php-jquery-ajax/feed/</wfw:commentRss>
			<slash:comments>127</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1008</post-id>	</item>
	</channel>
</rss>
