Witam, to znowu ja

Tym razem nie mogę poradzić sobie z weryfikacją adresu email
<?php
if ($_POST['reg'] == 'Zarejestruj')
{
if(!empty($_POST['email1'])) {
if(!empty($_POST['email2'])) {
if(!empty($_POST['password1'])) {
if(!empty($_POST['password2'])) {
$email = $_POST['email1'];
function checkEmail($email) {
if (!preg_match("/^( [a-zA-Z0-9] )+( [a-zA-Z0-9\._-] )*@( [a-zA-Z0-9_-] )+( [a-zA-Z0-9\._-] +)+$/" , $email)) { $test = 'Rejestracja';
}
else { $test = 'Bledny adres email'; }
}
}
}
else { $test = 'Powtórz haslo !'; }
}
else { $test = 'Podaj haslo !'; }
}
else { $test = 'Powtórz adres email !'; }
}
else { $test = 'Podaj adres email !'; }
}
$smarty->assign('res', $test);
?>
efekt ? Brak jakiegokolwiek komunikatu o czym kolwiek
Ten post edytował inside002 11.02.2011, 22:05:53