<?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/"
	>

<channel>
	<title>Data SystemsPlus &#187; How-To&#8217;s</title>
	<atom:link href="http://www.datasystemsplus.net/category/how-tos/feed" rel="self" type="application/rss+xml" />
	<link>http://www.datasystemsplus.net</link>
	<description>Web Marketing Tools And E-Courses From Carl Ringwall</description>
	<lastBuildDate>Fri, 16 Jul 2010 18:45:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Integrate Your Autoresponder With cURL</title>
		<link>http://www.datasystemsplus.net/integrate-your-autoresponder-with-curl</link>
		<comments>http://www.datasystemsplus.net/integrate-your-autoresponder-with-curl#comments</comments>
		<pubDate>Thu, 03 Dec 2009 21:16:57 +0000</pubDate>
		<dc:creator>Carl</dc:creator>
				<category><![CDATA[How-To's]]></category>
		<category><![CDATA[autoresponder]]></category>
		<category><![CDATA[aweber]]></category>
		<category><![CDATA[subscribe by email]]></category>

		<guid isPermaLink="false">http://www.datasystemsplus.net/integrate-your-autoresponder-with-curl</guid>
		<description><![CDATA[If you have a membership system, blog or e-learning application, you most likely want to put your new sign-ups into some type of autoresponder system at the same time.&#160; However, you really don&#8217;t want to make them sign up twice &#8211; once for your application, and once for the autoresponder.&#160; Wouldn&#8217;t it be nice if [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you have a membership system, blog or e-learning application, you most likely want to put your new sign-ups into some type of autoresponder system at the same time.&#160; However, you really don&#8217;t want to make them sign up twice &#8211; once for your application, and once for the autoresponder.&#160; Wouldn&#8217;t it be nice if you could auto-subscribe your new members to your mailing list application automatically?</p>
<p>If you use Aweber, or a similar service, you can just have your membership system shoot an email to <a href="mailto:yourListName@aweber.com">yourListName@aweber.com</a> &#8211; your recipient will automatically receive an opt-in verification message from Aweber.&#160; Many 3rd party services are integrated with Aweber, like E-Junkie &#8211; you can configure the E-Junkie cart to prompt Aweber to send a verification message automatically.</p>
<p>What if you run your own autoresponder script?&#160; What if your autoresponder script does not support subscribe by email? Is there a way to easily integrate an autoresponder script with another type of system?&#160; Thankfully, the answer is &#8216;Yes&#8217; &#8211; with a little PHP scripting.</p>
<p>PHP supports a very cool little extension called <a href="http://curl.haxx.se/">cURL</a> &#8211; this library of software magic allows you to automate lots of things over the Internet &#8211; including the filling out of autoresponder subscription forms.&#160; To get this to work, you need PHP with cURL support (most any unix/linux webhost).&#160; If you don&#8217;t know if your host has this, just ask.</p>
<p><strong>Step 1</strong> : get the html source of your autoresponder subscription form &#8211; make sure it&#8217;s the form for the correct mailing list &#8211; as most scripts put some kind of long &#8216;form id&#8217; within the sign-up form.&#160; This code tells the autoresponder which list the form is requesting.&#160; Note: if you are using a service like Aweber Get the HTML version of your form, not the javascript version.&#160; Open the html form in your notepad application.</p>
<p>You will need to document following from your autoresponder html submission form:</p>
<p>1.&#160; The post action url (note that for some autoresponders, the subscribe script may have a <a href="http://en.wikipedia.org/wiki/Query_string" target="_blank">querystring</a> variable appended to the script, to help identify the correct mailing list or account-I&#8217;ve included one in this example- not all scripts will require a querystring):</p>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">form</span> <span class="attr">method</span><span class="kwrd">=&quot;post&quot;</span> <span class="attr">action</span><span class="kwrd">=<a href="http://scriptdomain.com/path/subscribe.php?listID=343">http://scriptdomain.com/path/subscribe.php?listID=343</a></span> <span class="kwrd">&gt;</span></pre>
<p>
  </p>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>2. The Name and Email name attributes:</p>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">input</span>  <span class="attr">value</span><span class="kwrd">=&quot;&quot;</span> <span class="attr">name</span><span class="kwrd">=&quot;FirstName&quot;</span> <span class="attr">type</span><span class="kwrd">=&quot;text&quot;</span> <span class="attr">size</span><span class="kwrd">=&quot;30&quot;</span> <span class="kwrd">&gt;</span>

<span class="kwrd">&lt;</span><span class="html">input</span>  <span class="attr">value</span><span class="kwrd">=&quot;&quot;</span> <span class="attr">name</span><span class="kwrd">=&quot;Email&quot;</span> <span class="attr">type</span><span class="kwrd">=&quot;text&quot;</span> <span class="attr">size</span><span class="kwrd">=&quot;30&quot;</span> <span class="kwrd">&gt;</span></pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>Your code will look a bit different, but all these forms have a name and email input field.&#160; You want to note the &#8216;name&#8217; attributes &#8211; you&#8217;ll need them for the script.</p>
<p>3. Now identify any &#8216;hidden&#8217; input fields in your form and note the &#8216;name&#8217; attribute.</p>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">input</span> <span class="attr">type</span><span class="kwrd">=&quot;hidden&quot;</span> <span class="attr">name</span><span class="kwrd">=&quot;FormCode&quot;</span>

<span class="attr">value</span><span class="kwrd">=&quot;9a2bba0636de2430693f445480875730&quot;</span><span class="kwrd">&gt;</span></pre>
<p>4.&#160; Next, document all of the form fields for your script:</p>
<pre class="csharpcode">url: <font color="#0000ff">http://scriptdomain.com/path/subscribe.php?listID=343</font>

Form Fields:
<font color="#0000ff">Email
FirstName
FormCode</font></pre>
<p>5.&#160; Ok &#8211; now let&#8217;s code the integration (I&#8217;m assuming PHP here):</p>
<div>
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&lt;?php</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">

<span style="color: #008000">//first, find the variables in your sign-up script that contain the user's first</span>

<span style="color: #008000">// name and email</span>
</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">

<span style="color: #008000">//again, your code will look different - //just find the variables for first name and email</span>

<span style="color: #008000">//your script may use a simple $_POST function as in the example below for</span>

<span style="color: #008000">//$firstname  - Or your script may have a more secure and modular way to </span>

<span style="color: #008000">//define the variable, like the example below for $email ...</span>
</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">$firstName=$_POST[<span style="color: #006080">'firstName']</span>;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">$email=AWLRequest::post(<span style="color: #006080">'email'</span>,45);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #008000">// ok, now somewhere after your script processes the sign -up, put this code:</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #008000">//NOTE: always use //MOD comments around your changes!</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #008000">//DSP MOD:send message to autoresponder</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">

<span style="color: #008000"></span>&#160;

<span style="color: #008000">// create a new curl resource</span>
</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">$ch = curl_init();</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">

<span style="color: #008000">// set URL and other appropriate options - use the url for your subscribe script</span>

<span style="color: #008000"></span>&#160;
</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">curl_setopt($ch, CURLOPT_URL, <span style="color: #006080"><a href="http://scriptdomain.com/path/subscribe.php?listID=343">http://scriptdomain.com/path/subscribe.php?listID=343</a></span>);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #008000"></span><font color="#008000"></font></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">

<span style="color: #008000">// Do a POST - this is an array - the HTML field names from your submit form// are the 'keys'</span>

<span style="color: #008000"></span>&#160;
</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">$data = array(<span style="color: #006080">'FirstName'</span> =&gt; $firstName, <span style="color: #006080">'Email'</span> =&gt; $email,<span style="color: #006080">'FormCode'</span>=&gt;<span style="color: #006080">'9a2bba0636de2430693f445480875730'</span>);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">curl_setopt($ch, CURLOPT_POST, <span style="color: #0000ff">true</span>);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">curl_setopt($ch, CURLOPT_POSTFIELDS, $data);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #008000">// execute cURL command:</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">$exec=curl_exec($ch);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&#160;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">            <span style="color: #008000">//END DSP MOD</span></pre>
</p></div>
</div>
<p>And that&#8217;s all you do!&#160; Each time your form processing script executes, the user&#8217;s name and email are sent to your autoresponder script for processing.</p>
<p>To test this script, create a stand-alone version of the cURL code only,&#160; with hard-coded values for the firstname an an email address like this:</p>
<pre class="csharpcode">&lt;?php

$email = <span class="str">'me@mydomain.com'</span>;
$firstName = <span class="str">'My name'</span>;

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, <span class="str">&quot;http://scriptdomain.com/path/subscribe.php?listID=343&quot;</span>);
<span class="rem">// get the vars</span>

<span class="rem">// Do a POST</span>
$data = array(<span class="str">'Fields[1]'</span> =&gt; $firstName, <span class="str">'Email'</span> =&gt; $email,
        <span class="str">'FormCode'</span>=&gt;<span class="str">'9a2bba0636de2430693f445480875730'</span>,
                      <span class="str">'Format'</span>=&gt;<span class="str">'1'</span>,<span class="str">'SelectLists[1]'</span>=&gt;<span class="str">'YES'</span>);<font color="#800000">//note - splitting lines in php code is ok - php looks for the ending semicolon to //tell the end of a line of code</font>

curl_setopt($ch, CURLOPT_POST, <span class="kwrd">true</span>);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

<span class="rem">// grab URL, and print</span>
$exec=curl_exec($ch);
?&gt;</pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>Now save this script with any name you want, upload to your server and load it into your web browser.&#160; If all is working, you&#8217;ll get an email from your autoresponder script.</p>
<p>Troubleshooting tips:</p>
<p>Make sure you have the correct form field names from the sign up form</p>
<p>Make sure your path to the subscribe.php or whatever it&#8217;s called for your autoresponder system is correct.</p>
<p>Be sure that your web host allows cURL (almost all do).</p>
<p>The #1 coding error for PHP beginners &#8211; forgetting the semicolon at the end of each line!</p>
<p>Best Regards,</p>
<p>Carl </p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Integrate+Your+Autoresponder+With+cURL+http://bit.ly/5mY3Lm" title="Post to Twitter"><img class="nothumb" src="http://www.datasystemsplus.net/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.datasystemsplus.net/integrate-your-autoresponder-with-curl/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>I&#8217;m an Internet Marketer &#8211; And I&#8217;m Tired.</title>
		<link>http://www.datasystemsplus.net/im-an-internet-marketer-and-im-tired</link>
		<comments>http://www.datasystemsplus.net/im-an-internet-marketer-and-im-tired#comments</comments>
		<pubDate>Wed, 28 May 2008 21:33:38 +0000</pubDate>
		<dc:creator>Carl</dc:creator>
				<category><![CDATA[How-To's]]></category>

		<guid isPermaLink="false">http://www.datasystemsplus.net/im-an-internet-marketer-and-im-tired</guid>
		<description><![CDATA[I have spent the last year marketing online, and frankly, I&#8217;m tired. I did make some good money this past year, but I earned every penny.&#160;&#160; I&#8217;ve marketed my own electronic products, promoted rebrandable e-books, sold on eBay, offered digital downloads, ran an affiliate program, created autoresponder messages, cloaked my affiliate links, tracked my sales, [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I have spent the last year marketing online, and frankly, I&#8217;m tired. I did make some good money this past year, but I earned every penny.&nbsp;&nbsp; I&#8217;ve marketed my own electronic products, promoted rebrandable e-books, sold on eBay, offered digital downloads, ran an affiliate program, created autoresponder messages, <a href="http://www.datasystemsplus.net/wp-content/uploads/2008/05/dog-tired.jpg"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 10px 0px 0px; border-right-width: 0px" height="159" alt="dog_tired" src="http://www.datasystemsplus.net/wp-content/uploads/2008/05/dog-tired-thumb.jpg" width="240" align="left" border="0"></a> cloaked my affiliate links, tracked my sales, advertised on AdWords, promoted joint ventures, built an email list, created a blog, set up a merchant account, signed up for Clickbank,&nbsp; optimized my search engine position, created membership sites, did one-time offers, created DVD&#8217;s marketed PLR products, created product feeds, gave away free bonuses, tested my sales copy, used friendly urls, did keyword research, optimized my robots.txt,&nbsp; revised my permalink structure, created xml sitemaps, dropshipped products, wrote articles, syndicated my content, put a product on Amazon.com, sent a newsletter, submitted to social media sites, wrote paid reviews, and all of this while I regularly created fresh, engaging content on numerous blogs.&nbsp; I even managed to get one of my domains banned from Google.&nbsp;&nbsp; No wonder I&#8217;m tired.
<p>Since I&#8217;ve done all of this stuff, I figured I could make some more money by telling you, gentle reader, how you can do it, too.&nbsp; I just don&#8217;t recommend you trying to do it all in one year&#8217;s time.
<p>I&#8217;m in the process of turning this blog into an e-learning site where I&#8217;ll spill the goods on how to do all this stuff, and more. &nbsp; Stay tuned for updates. </p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=I%E2%80%99m+an+Internet+Marketer+%E2%80%93+And+I%E2%80%99m+Tired.+http://bit.ly/8qrtqS" title="Post to Twitter"><img class="nothumb" src="http://www.datasystemsplus.net/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.datasystemsplus.net/im-an-internet-marketer-and-im-tired/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Configure WordPress Blog Announcements With Aweber</title>
		<link>http://www.datasystemsplus.net/how-to-configure-wordpress-blog-announcements-with-aweber</link>
		<comments>http://www.datasystemsplus.net/how-to-configure-wordpress-blog-announcements-with-aweber#comments</comments>
		<pubDate>Mon, 09 Jun 2008 14:02:51 +0000</pubDate>
		<dc:creator>Carl</dc:creator>
				<category><![CDATA[How-To's]]></category>

		<guid isPermaLink="false">http://www.datasystemsplus.net/how-to-configure-wordpress-blog-announcements-with-aweber</guid>
		<description><![CDATA[As you build your mailing list, you should notify your mailing list subscribers about your regular blog posts. This is a proven way to build repeat traffic to your blog. Each time you post, your list gets a notice with a link to your new post. Here’s how it’s done with Aweber: Log into your [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>As you build your mailing list, you should notify your mailing list subscribers about your regular <b>blog</b> posts. This is a proven way to build repeat traffic to your <b>blog</b>. Each time you post, your list gets a notice with a link to your new post. Here’s how it’s done with <a href="http://www.datasystemsplus.net/lnk/6/blog" target="_blank">Aweber</a>: <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="240" alt="Aweber" src="http://www.datasystemsplus.net/wp-content/uploads/2008/06/aweber-screen1.jpg" width="218" align="right" border="0">
<p>Log into your Aweber control panel, choose the appropriate list and click the Messages tab &#8211; then click <b>Blog</b> Broadcast.
<p>In the rss feed box, put the url to your <b>blog</b> feed &#8211; in WordPress, it’s normally http://www.yourdomain.com/feed.
<p>Select Auto Send, # of Items = 1, basic template.
<p>For your subject line, use something like this (all on one line):&nbsp;
<p>{!firstname_fix},
<p><em>A New <b>Blog</b> Post: </em>
<p><em>{!rss_itemblock}{!rss_item_title}{!rss_itemblockend}</em>
<p>In your message box, use something like:
<p><em>Hey, {!firstname_fix},</em>
<p><em>I have just posted a <b>blog</b> entry:<br />{!rss_itemblock}</em>
<p><em>{!rss_item_title}<br />Read more: {!rss_item_link}</em>
<p><em>{!rss_itemblockend}</em>
<p><em>To Your Success,</em>
<p><em>Carl Ringwall<br />Data SystemsPlus</em>
<p><em>{!contact_address} </em></p>
<p>&nbsp;</p>
<p>That should do it. Post regularly, and try to keep your content relevant to your list.&nbsp; If you have not tried the <a href="http://www.datasystemsplus.net/lnk/6/blog" target="_blank">Aweber autoresponder service</a>, it is highly recommended.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=How+To+Configure+WordPress+Blog+Announcements+With+Aweber+http://bit.ly/78NiyZ" title="Post to Twitter"><img class="nothumb" src="http://www.datasystemsplus.net/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.datasystemsplus.net/how-to-configure-wordpress-blog-announcements-with-aweber/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
