Split로 2차원배열 저장하기 > 기술자료 | 해피정닷컴

Split로 2차원배열 저장하기 > 기술자료

본문 바로가기

사이트 내 전체검색

Split로 2차원배열 저장하기 > 기술자료

ClassicASP Split로 2차원배열 저장하기

페이지 정보


본문

[ write.asp : 입력페이지 ]

<form name="hpwrite" action="write_ok.asp" method="post">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
  <col width="120" />
  <col />
  <col />
  <tr>
    <td height="25"></td>
    <td>이름</td>
    <td>연락처</td>
    <td>E-mail</td>
  </tr>
  <%
  dim tkb_num, i
  tkb_num = 5
  if tkb_num > 0 then
    for i = 1 to tkb_num step 1
  %>
  <tr>
    <td style='padding-left:20px; height:30px;'>· <% response.write i %></td>
    <td><input type="text" name="tk_buyer_name<% response.write i %>" style="width:110px;" value="" /></td>
    <td style="padding:0 10px 0 10px;"><input type="text" name="tk_buyer_tel<% response.write i %>" style="width:140px;" value="" /></td>
    <td><input type="text" name="tk_buyer_email<% response.write i %>" style="width:300px;" value="" /></td>
  </tr>
  <%  
    next
  end if
  %>
</table>
<input type="submit" value="티켓구매" />
</form>


[ write_ok.asp : 2차원 배열을 저장하기 ]

<%
  dim tkb_num, tk_buyer_name, i
  
  if tkb_num > 0 then
    for i = 0 to tkb_num step 1
      tk_buyer_name = request("tk_buyer_name" & i) &"|"& request("tk_buyer_tel" & i) &"|"& request("tk_buyer_email" & i)
if i = 1 then
  tkb_buyer = tk_buyer_name
else
  tkb_buyer =  tkb_buyer & "," & tk_buyer_name
  'tkb_buyer =  tkb_buyer & "|" & tk_buyer_name
end if
    next
    if i = tkb_num then
      tkb_buyer =  tkb_buyer & ","
    end if
  end if
  
  response.write ("<script language='Javascript'>")
  response.write ("alert('이벤트가 등록 되었습니다.');")
  response.write "document.location.href = 'view.asp'"
  response.write ("</script>")
  response.End()
%>

댓글목록

등록된 댓글이 없습니다.


Total 2,636건 78 페이지
  • RSS
기술자료 목록
1096
ClassicASP   21077  2012-04-02 09:26  
열람
ClassicASP   15356  2012-04-01 17:00  
1094
MySQL   13766  2012-04-01 12:30  
1093
ClassicASP   16163  2012-04-01 09:14 ~ 2012-04-01 00:00  
1092
PHP   32076  2012-03-31 17:48 ~ 2018-12-17 14:52  
1091
PHP   18831  2012-03-31 11:03  
1090
ClassicASP   20163  2012-03-27 13:14  
1089
PHP   92676  2012-03-26 22:22  
1088
ClassicASP   26719  2012-03-26 20:16  
1087
PHP   52228  2012-03-24 22:40 ~ 2012-03-31 00:00  
1086
ClassicASP   15026  2012-03-24 01:04 ~ 2012-07-30 00:00  
1085
ClassicASP   12300  2012-03-23 23:12  
1084
ClassicASP   16149  2012-03-23 21:03 ~ 2013-11-06 00:00  
1083
.NET   20649  2012-03-21 10:53  
1082
일반   19849  2012-03-21 00:56 ~ 2018-05-25 18:09  
1081
전자결제   14822  2012-03-20 20:32  
1080
전자결제   16096  2012-03-20 20:09  
1079
전자결제   18581  2012-03-20 20:08 ~ 2017-03-10 00:00  
1078
SQL   12246  2012-03-19 21:54  
1077
SQL   13409  2012-03-19 21:40  

검색

해피정닷컴 정보

회사소개 회사연혁 협력사 오시는길 서비스 이용약관 개인정보 처리방침

회사명: 해피정닷컴   대표: 정창용   전화: 070-7600-3500   팩스: 042-670-8272
주소: (34368) 대전시 대덕구 대화로 160 대전산업용재유통단지 1동 222호
개인정보보호책임자: 정창용   사업자번호: 119-05-36414
통신판매업신고: 제2024-대전대덕-0405호 [사업자등록확인]  
Copyright 2001~2025 해피정닷컴. All Rights Reserved.