
23.02.2010, 14:08
|
|
Участник форума
Регистрация: 31.01.2010
Сообщений: 170
С нами:
8566257
Репутация:
63
|
|
j0ker13
PHP код:
<html>
<form id="form1" name="form1" method="post" action="">
<input name="text" type="text" id="text" />
<input type="submit" name="Submit" value="Submit" />
</form>
</html>
<?
$text=$_POST['text'];
if(preg_match('/1{2,}|2{2,}|3{2,}|4{2,}|5{2,}|6{2,}|7{2,}|8{2,}|9{2,}|0{2,}/',$text)){
echo "good";
}else{
echo "bad";
}
?>
|
|
|