파일 전송 버튼없이 전송하기
파일 전송 버튼없이 전송하기
<?
echo "Filename : ".$_FILES['fff']['name']."<br>";
echo "Tmp_name : ".$_FILES['fff']['tmp_name']."<br>";
?>
<html>
<body>
<form name=aaa action="test4.php" method="post" enctype="multipart/form-data">
<input type=file name=fff onchange=aa();>
</form>
</body>
</html>
<script>
function aa(){
if(document.aaa.fff.value != ""){
document.aaa.action = "test4.php";
document.aaa.submit();
}
}
</script>
<?
echo "Filename : ".$_FILES['fff']['name']."<br>";
echo "Tmp_name : ".$_FILES['fff']['tmp_name']."<br>";
?>
<html>
<body>
<form name=aaa action="test4.php" method="post" enctype="multipart/form-data">
<input type=file name=fff onchange=aa();>
</form>
</body>
</html>
<script>
function aa(){
if(document.aaa.fff.value != ""){
document.aaa.action = "test4.php";
document.aaa.submit();
}
}
</script>
댓글 2개
천재조상훈
12년 전
감사요
12년 전
좋아요
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5276 | 2년 전 | 1331 | |||
| 5275 | 2년 전 | 1400 | |||
| 5274 | 기타 | 2년 전 | 814 | ||
| 5273 | JavaScript |
swallow
|
2년 전 | 1044 | |
| 5272 | node.js |
swallow
|
2년 전 | 741 | |
| 5271 | JavaScript |
swallow
|
2년 전 | 1495 | |
| 5270 | PHP |
swallow
|
2년 전 | 844 | |
| 5269 | node.js |
swallow
|
2년 전 | 679 | |
| 5268 | node.js |
swallow
|
2년 전 | 1208 | |
| 5267 | PHP |
swallow
|
2년 전 | 1588 | |
| 5266 | MySQL |
swallow
|
2년 전 | 1088 | |
| 5265 | PHP |
swallow
|
2년 전 | 2028 | |
| 5264 | JavaScript |
swallow
|
2년 전 | 858 | |
| 5263 | 기타 |
swallow
|
2년 전 | 2980 | |
| 5262 | 기타 |
swallow
|
2년 전 | 667 | |
| 5261 | node.js |
swallow
|
2년 전 | 1059 | |
| 5260 | JavaScript |
swallow
|
2년 전 | 1508 | |
| 5259 | node.js |
swallow
|
2년 전 | 728 | |
| 5258 | node.js |
swallow
|
2년 전 | 1741 | |
| 5257 | node.js |
swallow
|
2년 전 | 1292 | |
| 5256 | PHP |
swallow
|
2년 전 | 1938 | |
| 5255 | node.js |
swallow
|
2년 전 | 684 | |
| 5254 | PHP |
swallow
|
2년 전 | 3010 | |
| 5253 | node.js |
swallow
|
2년 전 | 675 | |
| 5252 | 정규표현식 |
swallow
|
2년 전 | 621 | |
| 5251 | node.js |
swallow
|
2년 전 | 876 | |
| 5250 | PHP |
swallow
|
2년 전 | 1110 | |
| 5249 | node.js |
swallow
|
2년 전 | 1059 | |
| 5248 | PHP |
swallow
|
2년 전 | 1408 | |
| 5247 | node.js |
swallow
|
2년 전 | 1014 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기