Twitter Crash Course

0))
{
die(‘Error, Name field is empty’);
$error=1;
}
if (!(strlen($f_email)>0))
{
die(‘Error, Email field is empty’);
$error=1;
}
if(eregi(“MIME”,$fieldstocheck))
{
die(‘Get out, spammer.’);
$error=1;
}
if(eregi(“@”,($f_yourname)))
{
die(‘Invalid characters in name’);
$error=1;
}
if(eregi(“www”,$fieldstocheck))
{
die(‘Invalid characters in data’);
$error=1;
}
if (eregi(“http”,$fieldstocheck))
{
die(‘Invalid characters in data’);
$error=1;
}
if (eregi(“Content-Type”,$fieldstocheck))
{
die(‘Get out, spammer.’);
$error=1;
}
if(eregi(“charset”,$fieldstocheck))
{
die(‘Get out, spammer.’);
$error=1;
}
if ($error==0)
{
$data = “?Submit=Submit”;
$data.= “&subscriber_name=”.$f_yourname;
$data.= “&subscriber_email=”.$f_email;
$data.= “&campaign_name=webdevforager”;
$url = “http://www.getresponse.com/cgi-bin/add.cgi”;
$ch = curl_init(); // initialize curl handle
curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
curl_setopt($ch, CURLOPT_TIMEOUT, 6); // times out after 4s
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data); // add POST fields
$result = curl_exec($ch); // run the whole process

$data = “?Submit=Submit”;
$data.= “&subscriber_name=”.$f_yourname;
$data.= “&subscriber_email=”.$f_email;
$data.= “&campaign_name=learningtwitter_webdevforager”;
$url = “http://www.getresponse.com/cgi-bin/add.cgi”;
$ch = curl_init(); // initialize curl handle
curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
curl_setopt($ch, CURLOPT_TIMEOUT, 6); // times out after 4s
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data); // add POST fields
$result = curl_exec($ch); // run the whole process
}

?>
Thank You .

Youhave signed up successfully for the Twitter crash course. The first part is on it’s way to your mailbox at

To your success,

The WebDevForager