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

· 10년 전 · 827

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,033
10년 전 조회 1,420
10년 전 조회 923
10년 전 조회 930
10년 전 조회 1,184
10년 전 조회 953
10년 전 조회 1,000
10년 전 조회 843
10년 전 조회 1,131
10년 전 조회 930
10년 전 조회 823
10년 전 조회 895
10년 전 조회 1,599
10년 전 조회 934
10년 전 조회 940
10년 전 조회 925
10년 전 조회 1,076
10년 전 조회 1,509
10년 전 조회 1,175
10년 전 조회 954
10년 전 조회 853
10년 전 조회 933
10년 전 조회 1,006
10년 전 조회 915
10년 전 조회 986
10년 전 조회 890
10년 전 조회 1,064
10년 전 조회 922
10년 전 조회 888
10년 전 조회 864
10년 전 조회 1,501
10년 전 조회 993
10년 전 조회 946
10년 전 조회 946
10년 전 조회 957
10년 전 조회 948
10년 전 조회 978
10년 전 조회 1,444
10년 전 조회 899
10년 전 조회 955
10년 전 조회 848
10년 전 조회 1,430
10년 전 조회 1,081
10년 전 조회 1,072
10년 전 조회 1,140
10년 전 조회 1,080
10년 전 조회 1,038
10년 전 조회 1,007
10년 전 조회 828
10년 전 조회 962
10년 전 조회 850
10년 전 조회 1,151
10년 전 조회 892
10년 전 조회 862
10년 전 조회 895
10년 전 조회 924
10년 전 조회 972
10년 전 조회 885
10년 전 조회 922
10년 전 조회 1,061
10년 전 조회 930
10년 전 조회 984
10년 전 조회 943
10년 전 조회 990
10년 전 조회 1,094
10년 전 조회 960
10년 전 조회 938
10년 전 조회 964
10년 전 조회 1,059
10년 전 조회 969
10년 전 조회 926
10년 전 조회 944
10년 전 조회 962
10년 전 조회 896
10년 전 조회 902
10년 전 조회 1,200
10년 전 조회 1,282
10년 전 조회 1,243
10년 전 조회 927
10년 전 조회 946
10년 전 조회 907
10년 전 조회 929
10년 전 조회 1,032
10년 전 조회 979
10년 전 조회 871
10년 전 조회 926
10년 전 조회 1,313
10년 전 조회 1,744
10년 전 조회 1,316
10년 전 조회 1,130
10년 전 조회 1,206
10년 전 조회 961
10년 전 조회 941
10년 전 조회 981
10년 전 조회 937
10년 전 조회 964
10년 전 조회 954
10년 전 조회 1,218
10년 전 조회 1,074