<!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>
게시글 목록
| 번호 | 제목 |
|---|---|
| 866 |
기타
Key 관련
2
|
| 864 | |
| 863 |
MySQL
초보일지 FC4에서 가상호스트설정과정
|
| 862 |
기타
pop3서버 설치 방법
|
| 860 |
JavaScript
메뉴 생성 클래스
1
|
| 859 | |
| 858 |
JavaScript
qpopper(pop3) 설치
|
| 856 | |
| 855 | |
| 854 | |
| 852 |
JavaScript
RTL8201BL 랜카드 잡으려면
|
| 851 |
MySQL
mysql 설치후 실행오류 처리
|
| 850 | |
| 848 |
JavaScript
RedHat(레드햇) 9 설치 후 yum 설치
|
| 847 | |
| 845 | |
| 844 |
JavaScript
메일 릴레이 테스트
|
| 843 | |
| 842 | |
| 841 | |
| 839 | |
| 829 | |
| 824 |
JavaScript
브러시 집안들 브러시 지름을 쉽고 빠르게 조절하자~~~
4
|
| 823 |
정규표현식
페도라 코어 3에서 APM 설치하기
|
| 822 |
Linux
rsync를 이용한 미러링
|
| 820 | |
| 817 | |
| 815 |
기타
vi 서비스 편집
1
|
| 814 |
MySQL
리눅스에서 mysql DB설정
|
| 813 |
MySQL
리눅스 에서 아파치와 php 설치
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기