특정 이메일 입력 금지및 이메일 유효성 검사하기 입니다.

· 10년 전 · 832

daum, naver, yahoo,hanmail 계정은 입력할 수 없습니다<br>
 
<form name="validation" onSubmit="return checkbae()">
이메일 주소 입력 :
<input type="text" size=18 name="emailcheck"><br>
<input type="submit">
</form>
 
<script language="JavaScript1.2">
 
var invalidaddress=new Array()
invalidaddress[0]="daum"
invalidaddress[1]="naver"
invalidaddress[2]="yahoo"
invalidaddress[3]="hanmail"
 
var testresults
function checkemail(){
var invalidcheck=0;
var str=document.validation.emailcheck.value
var filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str)){
var tempstring=str.split("@")
tempstring=tempstring[1].split(".")
for (i=0;i<invalidaddress.length;i++){
if (tempstring[0]==invalidaddress[i])
invalidcheck=1
}
if (invalidcheck!=1)
testresults=true
else{
alert("입력 금지된 계정입니다")
testresults=false
}
}
else{
alert("이메일 주소가 유효하지 않습니다")
testresults=false
}
return (testresults)
}
function checkbae(){
if (document.layers||document.getElementById||document.all)
return checkemail()
else
return true
}
</script> 

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

프로그램

+
제목 글쓴이 날짜 조회
10년 전 조회 1,113
10년 전 조회 1,034
10년 전 조회 1,422
10년 전 조회 926
10년 전 조회 932
10년 전 조회 1,185
10년 전 조회 956
10년 전 조회 1,004
10년 전 조회 846
10년 전 조회 1,132
10년 전 조회 936
10년 전 조회 826
10년 전 조회 897
10년 전 조회 1,600
10년 전 조회 936
10년 전 조회 944
10년 전 조회 930
10년 전 조회 1,078
10년 전 조회 1,513
10년 전 조회 1,179
10년 전 조회 955
10년 전 조회 857
10년 전 조회 933
10년 전 조회 1,008
10년 전 조회 915
10년 전 조회 987
10년 전 조회 890
10년 전 조회 1,067
10년 전 조회 926
10년 전 조회 890
10년 전 조회 867
10년 전 조회 1,501
10년 전 조회 993
10년 전 조회 949
10년 전 조회 950
10년 전 조회 960
10년 전 조회 952
10년 전 조회 986
10년 전 조회 1,447
10년 전 조회 899
10년 전 조회 961
10년 전 조회 851
10년 전 조회 1,430
10년 전 조회 1,082
10년 전 조회 1,072
10년 전 조회 1,141
10년 전 조회 1,084
10년 전 조회 1,040
10년 전 조회 1,008
10년 전 조회 833
10년 전 조회 962
10년 전 조회 852
10년 전 조회 1,151
10년 전 조회 895
10년 전 조회 864
10년 전 조회 898
10년 전 조회 924
10년 전 조회 974
10년 전 조회 888
10년 전 조회 922
10년 전 조회 1,063
10년 전 조회 933
10년 전 조회 986
10년 전 조회 945
10년 전 조회 991
10년 전 조회 1,097
10년 전 조회 961
10년 전 조회 938
10년 전 조회 966
10년 전 조회 1,059
10년 전 조회 969
10년 전 조회 926
10년 전 조회 946
10년 전 조회 967
10년 전 조회 897
10년 전 조회 905
10년 전 조회 1,201
10년 전 조회 1,287
10년 전 조회 1,246
10년 전 조회 929
10년 전 조회 948
10년 전 조회 907
10년 전 조회 930
10년 전 조회 1,036
10년 전 조회 981
10년 전 조회 874
10년 전 조회 929
10년 전 조회 1,315
10년 전 조회 1,744
10년 전 조회 1,322
10년 전 조회 1,132
10년 전 조회 1,207
10년 전 조회 964
10년 전 조회 943
10년 전 조회 982
10년 전 조회 938
10년 전 조회 967
10년 전 조회 955
10년 전 조회 1,218
10년 전 조회 1,076