Mam formularz który powinien sprawdzac czy mail jest dobrze wypełniony
Cytat
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<?php
if ($_POST["email"] &&
!ereg("^[^@]+@([a-z0-9\-]+\.)+[a-z]{2,4} $",
$_POST["email"]) )
$err .="format mail poprawny nie jest ? <BR>";
?>
<table>
<FORM Action="wymuszanie_regul.php" METHOD=POST>
<TR>
<Tr>mail <input type="text" name="email" size=30> </Tr><BR>
<P>
<Tr><input type="submit" value="wyslij komentarz">
</TR>
</form>
</table
</body>
</html>
<html>
<head>
<title></title>
</head>
<body>
<?php
if ($_POST["email"] &&
!ereg("^[^@]+@([a-z0-9\-]+\.)+[a-z]{2,4} $",
$_POST["email"]) )
$err .="format mail poprawny nie jest ? <BR>";
?>
<table>
<FORM Action="wymuszanie_regul.php" METHOD=POST>
<TR>
<Tr>mail <input type="text" name="email" size=30> </Tr><BR>
<P>
<Tr><input type="submit" value="wyslij komentarz">
</TR>
</form>
</table
</body>
</html>
Co jest nie tak ?