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.  However, you really don’t want to make them sign up twice – once for your application, and once for the autoresponder.  Wouldn’t it be nice if you could auto-subscribe your new members to your mailing list application automatically?

If you use Aweber, or a similar service, you can just have your membership system shoot an email to yourListName@aweber.com – your recipient will automatically receive an opt-in verification message from Aweber.  Many 3rd party services are integrated with Aweber, like E-Junkie – you can configure the E-Junkie cart to prompt Aweber to send a verification message automatically.

What if you run your own autoresponder script?  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?  Thankfully, the answer is ‘Yes’ – with a little PHP scripting.

PHP supports a very cool little extension called cURL – this library of software magic allows you to automate lots of things over the Internet – including the filling out of autoresponder subscription forms.  To get this to work, you need PHP with cURL support (most any unix/linux webhost).  If you don’t know if your host has this, just ask.

Step 1 : get the html source of your autoresponder subscription form – make sure it’s the form for the correct mailing list – as most scripts put some kind of long ‘form id’ within the sign-up form.  This code tells the autoresponder which list the form is requesting.  Note: if you are using a service like Aweber Get the HTML version of your form, not the javascript version.  Open the html form in your notepad application.

You will need to document following from your autoresponder html submission form:

1.  The post action url (note that for some autoresponders, the subscribe script may have a querystring variable appended to the script, to help identify the correct mailing list or account-I’ve included one in this example- not all scripts will require a querystring):

<form method="post" action=http://scriptdomain.com/path/subscribe.php?listID=343 >

2. The Name and Email name attributes:

<input  value="" name="FirstName" type="text" size="30" >

<input  value="" name="Email" type="text" size="30" >

Your code will look a bit different, but all these forms have a name and email input field.  You want to note the ‘name’ attributes – you’ll need them for the script.

3. Now identify any ‘hidden’ input fields in your form and note the ‘name’ attribute.

<input type="hidden" name="FormCode"

value="9a2bba0636de2430693f445480875730">

4.  Next, document all of the form fields for your script:

url: http://scriptdomain.com/path/subscribe.php?listID=343

Form Fields:
Email
FirstName
FormCode

5.  Ok – now let’s code the integration (I’m assuming PHP here):

<?php
 

//first, find the variables in your sign-up script that contain the user's first

// name and email

//again, your code will look different - //just find the variables for first name and email

//your script may use a simple $_POST function as in the example below for

//$firstname  - Or your script may have a more secure and modular way to 

//define the variable, like the example below for $email ...
 
 
$firstName=$_POST['firstName'];
 
$email=AWLRequest::post('email',45);
 
// ok, now somewhere after your script processes the sign -up, put this code:
 
//NOTE: always use //MOD comments around your changes!
 
//DSP MOD:send message to autoresponder

 

// create a new curl resource
$ch = curl_init();
 

// set URL and other appropriate options - use the url for your subscribe script

 
curl_setopt($ch, CURLOPT_URL, http://scriptdomain.com/path/subscribe.php?listID=343);
 

// Do a POST - this is an array - the HTML field names from your submit form// are the 'keys'

 
$data = array('FirstName' => $firstName, 'Email' => $email,'FormCode'=>'9a2bba0636de2430693f445480875730');
 
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
 
// execute cURL command:
$exec=curl_exec($ch);
 
            //END DSP MOD

And that’s all you do!  Each time your form processing script executes, the user’s name and email are sent to your autoresponder script for processing.

To test this script, create a stand-alone version of the cURL code only,  with hard-coded values for the firstname an an email address like this:

<?php

$email = 'me@mydomain.com';
$firstName = 'My name';

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "http://scriptdomain.com/path/subscribe.php?listID=343");
// get the vars

// Do a POST
$data = array('Fields[1]' => $firstName, 'Email' => $email,
        'FormCode'=>'9a2bba0636de2430693f445480875730',
                      'Format'=>'1','SelectLists[1]'=>'YES');//note - splitting lines in php code is ok - php looks for the ending semicolon to //tell the end of a line of code

curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

// grab URL, and print
$exec=curl_exec($ch);
?>

Now save this script with any name you want, upload to your server and load it into your web browser.  If all is working, you’ll get an email from your autoresponder script.

Troubleshooting tips:

Make sure you have the correct form field names from the sign up form

Make sure your path to the subscribe.php or whatever it’s called for your autoresponder system is correct.

Be sure that your web host allows cURL (almost all do).

The #1 coding error for PHP beginners – forgetting the semicolon at the end of each line!

Best Regards,

Carl

{ 0 comments }

Testing is defined in the dictionary as this…

“A procedure for critical evaluation; a means of determining the
presence, quality, or truth of something”

…and that’s exactly what it is, a way for you to determine the presence, quality and truth of every aspect of your business, in other words, a way for you to find out exactly what works and what doesn’t work, what produces results and what wastes time, what makes you money and what costs you money.

This is why it is so vital to your business.

Testing is one of the most important aspects of building a business that you can possibly do, it really is, testing can be the difference between $100 a month and $10000 a month, it can be the difference between a 1% conversion rate and a 5% conversion rate, it can be the difference between success and failure.

That may sound a lot like hype but it really is the truth, if you’re not testing aspects of your business and marketing process then you’re leaving money on the table, possibly a LOT of it.

Split Test With A Simple Script

AdTestPro is a new split testing tool that gives you the ability to test multiple pages in order to find out which one produces the best results.

For example, if you are going to put up a squeeze page for a niche market you want to start selling to then you could create two versions of the page, just word them a little differently, try different images, things like and then let AdTestPro run them, all you need to do is drive traffic to your domain name and the script will automatically rotate the pages so that each page receives the same amount of visitors.

The script will provide you with the data you need and will show you which version of the page produces the best results, then you simply go with that page or even better, create another one and see if you can beat the results, if you continue doing this then you will be constantly increasing your conversion rates.

The great thing about AdTestPro is that it is extremely easy to install and easy to set-up, this script has been created specifically for the purpose of making split testing easy for you to do, you don’t need to learn any sort of coding and there isn’t anything difficult about getting the entire thing set­up and ready to go.

Easy To Install And Use

  • Easily install and set-up the program – No complicated code
  • Test everything about your  pages – Graphics, wording, layouts and more
  • Gain important data that puts more money in your pocket when used
  • Run alternate versions of the same page – Squeeze pages, sales pages, etc
  • Find out what little changes can make big differences to your bottom line

Better Than The Competition

Unlike similar programs, AdTest Pro allows you to keep your home page structure intact. You don’t have to redirect visitors to alternate pages – this is a very important SEO advantage. Don’t be fooled by AdTest Pro’s low price – this program is professionally written and is very powerful.

Click the button below to order securely –

orderbutton

You need to split-test your ad copy – At less than ten bucks, you can’t lose with AdTest Pro!

To Your Success,

{ 0 comments }

My Top Performing Article Marketing Keywords

September 28, 2009

I’ve been article marketing for several months now, and I’d like to share some data with you.  I have several hundred articles live on many of the more popular article directories.  I’ve been tracking referrals to my landing pages from all of them.   Each one of my articles is written around one keyword phrase.
I [...]

Read the full article →

MembershipEase Instant Membership Site Creator

May 8, 2009

I’m using this program now to create secure, easy to set up membership areas.  This is great little program that will work for any type of web site.  This little program does it all – PayPal, Clickbank, recurring charges, One-Time Offers, free users.  It lets you add members to your autoresponder automatically.  If you [...]

Read the full article →

5 Ways to Use Twitter for Web Site Promotion

December 8, 2008

Post Update: Here is a great tool to actually use Twitter to make some money – Carl
If you haven’t heard of it before, Twitter is a micro blogging tool that allows you to write short messages (up to 140 characters at a time) that can be exchanged between friends, and posted for all to see. [...]

Read the full article →

How Useful are Automated Social Bookmarking Tools?

August 5, 2008

If you’re looking for a tool to promote your website(s), the buck stops with social bookmarking. With the advent of Web 2.0 and its focus on the social aspect of the Internet, listing your pages on bookmarking sites is a surefire way to get visitors to your pages – they either get there by directly [...]

Read the full article →

For Creating Good-Looking Posts, LiveWriter Rocks! (It’s also free)

July 16, 2008

Every blogger wants good-looking blog posts.  There are times when you just wish you had the same editing capability in WordPress that you have say, inMS Word.  No problem – the folks at Microsoft have you covered with some free software.  It’s called Windows Live Writer – and for the average user, I think it’s [...]

Read the full article →

Get More Backlinks By Sharing Your Posts

July 14, 2008

Another nice backlink method that does not cost a dime – and really takes just a few minutes to set up – is Jon Ledger’s ShareAPost.com site.
The site features posts from blogs covering all categories – and these authors have authorized others to use or syndicate their content.  You can’t change the wording or [...]

Read the full article →

Technorati and What It Can Do For You-Trish Jones

July 11, 2008

Guest Post: Trish Jones
Trish Jones, MBA, is an online marketing consultant and has created and managed her own Internet business, since 2004. Trish teaches entrepreneurs, independent professionals and small business owners how to attract more clients and make more money using a simple blog. For more blogging tips, go to www.trishjones.com

Techno Who!?
This is the response [...]

Read the full article →

Call Only To The Readers That Are Ready

June 26, 2008

Remember the door-to-door salesmen who used to call on your house when you were a kid? I often wondered how hard those guys had to work just to make a few sales. They had the advantage of ‘being there’ with the customer so their sales pitches could not easily be ignored. But many, if not [...]

Read the full article →