It only echoes if you are running in debug mode
IE
list ( $user, $domain ) = split ( "@", $email, 2 );
if($debug_==1) {
echo"user: $user<BR>";
echo"domain: $domain<BR>"; }
Are you running this from a server which is connected to the internet.
IE have you put it on your webspace It must be run from the Internet and called from a form
ie
if (!$ACTION){
<? echo"<FORM ACTION=\"$PHP_SELF\" METHOD=\"POST\">"; ?>
<input type="radio" name="ACTION" value="subscribe" checked>Subscribe<br>
<input type="radio" name="ACTION" value="unsubscribe" unchecked>Un-Subscribe<br>
<input type="text" name="email" size=25 maxlength=100>
<br>
<input type="submit" VALUE="submit">
</form>
}
if ($ACTION=="subscribe")
{
$email=trim($email);
$val_results = validateEmail ( $email ) ;
if ( $val_results[0] == true )
then do what you want to do
else
{
echo"<center>Problem validating your email<br><center>[<?echo"$email";?>]</center><br>";
}