<meta http-equiv="content-type" content="text/html; charset=windows-1256" />
<style type="text/css">
.style1 {
text-align: center;
}
</style>

<body >


<div class="style1">
<textarea name="emails" cols="30" rows="10"></textarea>
<br />


</div>

PHP

$emails = $_POST['emails'];
$ex = explode("\n",$emails);
$count = count($ex);
if(isset($emails)&&$count>=1){
echo "
<font color = 'red'>$count </font>Number of emails
<br />";
}else{
echo "

No email
";
exit;}

if(isset($emails)){


for($i=0;$i<=$count;$i++){
$d = strtolower($ex[$i]);

if(strstr($d,"hotmail") || strstr($d,"live") || strstr($d,"msn") || strstr($d,"outlook")){
$hotmail.=$d;
$nh = $nh + 1;
}else{
if(strstr($d,"yahoo") || strstr($d,"ymail")){
$yahoo.=$d;
$ny = $ny + 1;
}else{
if(strstr($d,"gmail") || strstr($d,"googlemail") ){
$gmail.=$d;
$ng = $ng + 1;
}else{
if(strstr($d,"aol") ){
$aol.=$d;
$na = $na + 1;
}else{
if(strstr($d,"mail.ru") ){
$mailru .=$d;
$nr = $nr + 1;
}else{
if(strstr($d,"wanadoo") ){
$wanadoo .=$d;
$nw = $nw + 1;
}else{
if(strstr($d,"ntlworld") ){
$ntlworld .=$d;
$nt = $nt + 1;
}else{
if(strstr($d,"gmx") ){
$gmx .=$d;
$ngm = $ngm + 1;
}else{
if(strstr($d,"@web.") ){
$web .=$d;
$nw2 = $nw2 + 1;
}else{

$ather .=$d;
$nn=$nn + 1;
}

}

}


}

}
}
}
}

}
}
}

<table style="width: 30%">

hotmail ( echo $nh; )
<textarea name="hotmailx" cols="30" rows="10" >echo $hotmail;</textarea>
gmail ( echo $ng; )
<textarea name="gmailx" cols="30" rows="10" >echo $gmail;</textarea>
aol ( echo $na; )
<textarea name="aolxx" cols="30" rows="10" >echo $aol;</textarea>
yahoo ( echo $ny; )
<textarea name="yahoox" cols="30" rows="10" >echo $yahoo;</textarea>
mail.ru( echo $nr; )
<textarea name="othersx" cols="30" rows="10" >echo $mailru;</textarea>

wanadoo( echo $nw; )
<textarea name="othersx" cols="30" rows="10" >echo $wanadoo;</textarea>
ntlworld( echo $nt; )
<textarea name="othersx" cols="30" rows="10" >echo $ntlworld;</textarea>
gmx( echo $ngm; )
<textarea name="othersx" cols="30" rows="10" >echo $gmx;</textarea>
web( echo $nw2; )
<textarea name="othersx" cols="30" rows="10" >echo $web;</textarea>
ather mails( echo $nn-1; )
<textarea name="othersx" cols="30" rows="10" >echo $ather;</textarea>