| 제목 | upload 관련 | ||
|---|---|---|---|
| 글쓴이 | 피자한판두판 | 작성시각 | 2012/07/13 10:20:27 |
|
|
|||
단순히 페이지를 만들어놓고 upload는 되는데요
<td width="111" height="29" bgcolor="white">
<p align="center">내용</p>
</td>
<td width="617" height="29" bgcolor="white">
<p> <textarea name="memo" class=input_formtext rows="17" cols="79"><?php echo set_value('memo',$memo);?></textarea></p>
</td>
</tr>
</table>
<form method="post" action="/all/do_upload" enctype="multipart/form-data" >
<table align="center" border="0" width="744" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td width="78" height="29" bgcolor="white">
<p align="center">첨부</p>
</td>
<td width="617" height="29" bgcolor="white">
<p> <input type="file" name="img01" size="61" value=""></p>
</td>
</tr>
</table>
</form>
<table align="center" cellpadding="0" cellspacing="0" width="743">
<tr>
<td width="743" height="39">
<p align="center"><input type="submit" name="formbutton1" value="확인"> <input type="button" name="formbutton1" value="취소" onclick="location.href='/all/lists_method';"></p>
</td>
</tr>
<?php echo form_close(); ?>
</table>
저렇게 하니 확인을 눌렀을때 페이지가 안넘어가네요중간에 form을 넣었더니 저렇게 되었는데 이걸 확인눌렀을때 넘길려면 어떻게 해야하나여?? 그리고.. 추가적으로 제가 잘 이해를 못해서 그런데요 upload시킨 파일은 다운로드도 받을 수 있어야 하잖아요 ? 근데 그것도 DB에있어야 다운로드 받을 수 있는거 아닌가요? 그런데 레퍼런스에는 그런 부분이 없는 것 같아서요.. 혹시 몰라서 view파일 첨부했습니다. |
|||
| 다음글 | $this.. (3) | ||
| 이전글 | 쿼리 질문입니다^^ (2) | ||
|
변종원(웅파)
/
2012/07/13 10:40:09 /
추천
0
|
|
피자한판두판
/
2012/07/13 13:39:45 /
추천
0
웅파 //
일단 다운로드 먼저 만든 후에 해야 할 것 같습니다. 감사합니다. |
첨부파일 따로 폼전송 하려면 ajax를 이용하시거나 플래시파일을 이용한 다중업로드 이용하세요.