Email
|
|
|
|
<code><pre>
<? /*
usually checking email using regex, this is different
i use explode() to make it possible, just showing you another way to do it
greeting to desy secandri, my friends on satunet.com, cdl2000.com, and ppls on infolinux magazine
copyrighted? hell no!
made on 19 may 2001 after watching antitrust the movie :)
this just the basic, you can inprove it for your needed, other... throw it use other better way :), i just showing you another trick
http://phpklik.dhs.org
*/
$user=explode("@",$email);
echo"email=$emailn";
echo"username=$user[0]n"; $domain=explode(".",$user[1]);
if (!$domain[1]) { die("domain not valid"); }
else { $cnt=count($domain); $c=$cnt-1;
echo"domain=";
for ($h = 0; $h < $cnt; $h++) {
echo"$domain[$h]";
if ($h < $c) {echo".";}
else{}
}
} ?>
domain name syntax valid, but didnt check for live domain or just fake domain
|
|
|
Usage Example
|
<form method="POST" action=em.php>
enter email to check : <input type="text" size="20" name="email">
<p><input type="submit" value="Submit">
<input type="reset" value="Reset">
|
|
|
Rate This Script
|
|
|
|