// 보내는 파일 write.asp
<script language="javascript">
function end_form_submit() {
document.endfrm.action = "save.asp"
document.endfrm.submit();
}
</script>
(중략)
<form name="endfrm" method="post" enctype="multipart/form-data" action="save.asp">
<input type="hidden" name="test" values="<%=strTest%>">
<input type="hidden" name="test2" values="<%=strTest2%>">
<input type="file" name="file" size="30">
<BUTTON TYPE='button' onFocus="this.blur()" STYLE='border:0; background-color:#FFFFFF; width:88; height:25; cursor=hand' onClick="end_form_submit();"
><img src="/image/submit" alt="보내기" width="87" height="24" border="0"></BUTTON>
</form>
// 받는 파일 save.asp
var uploadForm = Server.CreateObject ("SiteGalaxyUpload.Form");
var strTest = (String(uploadForm("test")) == "undefined" || String(uploadForm("test")) == "") ? "default" : String(uploadForm("test"));
var strTest2 = (String(uploadForm("test2")) == "undefined" || String(uploadForm("test2")) == "") ? "write" : String(uploadForm("test2"));
var strFile = (String(uploadForm("file"))=="undefined" || String(uploadForm("file"))=="") ? "" :String(uploadForm("file"));
Response.Write(strTest+"<br>"+strTest2+"<br>"+strFile);
Response.Write("<script language='javascript'>alert('정상적으로 등록되었습니다.');location.href=write.asp'</script>");
Response.End();
'소프트웨어 > ASP / JS / CSS / C#' 카테고리의 다른 글
Windows Script 기술 (0) | 2007.12.21 |
---|---|
SiteGalaxyUpload.Form.1 (0x80070006) (0) | 2007.12.21 |
JSCRIPT DBOpen (0) | 2007.11.28 |
Jscript 밑에줄 모두 처리 안하기 (0) | 2007.11.15 |
SiteGalaxyUpload 파일업로드 (0) | 2007.11.15 |
댓글