
15.01.2009, 14:32
|
|
Reservists Of Antichat - Level 6
Регистрация: 25.04.2008
Сообщений: 827
Провел на форуме: 2769640
Репутация:
1304
|
|
>.:!FrE!:.<
PHP код:
<table>
<tr>
<td valign=top><form method="post">
<TEXTAREA NAME=mails ROWS=30 COLS=50></TEXTAREA>
<br/><input type="submit">
</form>
<td nowarp>
<?
if (isset($_POST['mails']))
{
$mails=strtolower($_POST['mails']);
preg_match_all('~[a-zA-Z0-9\.\_\-]+@[a-zA-Z0-9\_\-]+\.[a-zA-Z]{2,5}~i',$mails,$result);
echo join('<br/>',array_unique(
array_map('htmlspecialchars',$result[0])));
}
?>
</table>
|
|
|