<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Sample Script </TITLE>
<META NAME="Author" CONTENT="JASKO">
<SCRIPT LANGUAGE="JavaScript">
<!--
extArray = new Array(".gif", ".jpg", ".png");
function LimitAttach(form, file) {
allowSubmit = false;
if (!file) return;
while (file.indexOf("") != -1)
file = file.slice(file.indexOf("") + 1);
ext = file.slice(file.indexOf(".")).toLowerCase();
for (var i = 0; i < extArray.length; i++) {
if (extArray[i] == ext) { allowSubmit = true; break; }
}
if (allowSubmit) form.submit();
else
alert("아래 형태의 파일만 업로드 할 수 있습니다: "
+ (extArray.join(" ")) + "n다시 선택 해 주세요");
}
//-->
</script>
</HEAD>
<BODY>
<center>
아래 파일들만 업로드 할 수 있습니다
<script>
document.write(extArray.join(" "));
</script>
<p>
<form method=post name=upform action="../../result,html" enctype="multipart/form-data">
<input type=file name=uploadfile>
<p>
<input type=button name="Submit" value=" 전송 " onclick="LimitAttach(this.form, this.form.uploadfile.value)">
</form>
</center>
</BODY>
</HTML><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
<HTML>
<HEAD>
<TITLE> Sample Script </TITLE>
<META NAME="Author" CONTENT="JASKO">
<SCRIPT LANGUAGE="JavaScript">
<!--
extArray = new Array(".gif", ".jpg", ".png");
function LimitAttach(form, file) {
allowSubmit = false;
if (!file) return;
while (file.indexOf("") != -1)
file = file.slice(file.indexOf("") + 1);
ext = file.slice(file.indexOf(".")).toLowerCase();
for (var i = 0; i < extArray.length; i++) {
if (extArray[i] == ext) { allowSubmit = true; break; }
}
if (allowSubmit) form.submit();
else
alert("아래 형태의 파일만 업로드 할 수 있습니다: "
+ (extArray.join(" ")) + "n다시 선택 해 주세요");
}
//-->
</script>
</HEAD>
<BODY>
<center>
아래 파일들만 업로드 할 수 있습니다
<script>
document.write(extArray.join(" "));
</script>
<p>
<form method=post name=upform action="../../result,html" enctype="multipart/form-data">
<input type=file name=uploadfile>
<p>
<input type=button name="Submit" value=" 전송 " onclick="LimitAttach(this.form, this.form.uploadfile.value)">
</form>
</center>
</BODY>
</HTML><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
게시글 목록
| 번호 | 제목 |
|---|---|
| 20014 | |
| 10421 |
jQuery
jQuery Quick Api Reference
5
|
| 10417 | |
| 20006 |
CSS
그라디언트 에디터
7
|
| 20003 | |
| 10410 | |
| 10407 | |
| 10392 | |
| 10389 | |
| 10380 |
Mobile
디바이스별 viewport 설정. (수정본)
8
|
| 10378 | |
| 17596 | |
| 10371 | |
| 19995 | |
| 10369 | |
| 10366 | |
| 10364 |
jQuery
[펌] jQuery select box
1
|
| 10363 |
기타
구글 확장프로그램 추천
|
| 10361 |
정규표현식
캡쳐 그룹과 비캡쳐 그룹
1
|
| 10357 |
웹서버
php 업로드 용량 늘리기
3
|
| 10352 | |
| 19990 | |
| 10349 | |
| 10343 |
Mobile
디바이스별 viewport 설정.
5
|
| 10340 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기