<?
if (isset($_POST[
"email"]
))
{
if (eregi("^[[:alnum:]][a-z0-9_.-]*@[a-z0-9.-]+\.[a-z]{2,4}$",
$_POST[
'email']
))
echo "Zadaný email je OK.";
else
echo "Chybný email!";
}
?>
<
FORM ACTION=
"mail.php" method=post><BR>
Zadajte e-mail: <INPUT type=
"text" name=
"email"><br>
<INPUT type=
"submit" value=
" Odoslať ">
</
FORM>