천

이메일주소 검사하기 입니다.

· 2016-03-07 (월) 15:42:44 · 2842

<?php

 echo "<form action=$PHP_SELF method=post>";
 echo "<input type=text name=address></input><input type=submit></input>";
 echo "</form>";

 if (ereg('^[-!#$%&'*+./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+.'.'[-!#$%&'
 '*+./0-9=?A-Z^_`a-z{|}~]+$',$address)) {
 echo "당신의 이메일주소는 $address 입니다.";
 } else echo "$address 는 올바른 이메일주소가 아닙니다.";

php?>  

|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+