|
|
|
²ÀÁö / 2002-03-18 / ¿ÀÈÄ 8:23:40 / 211.181.157.50
Á¶È¸¼ö : 146
|
[Áú¹®] ȸ¿ø°¡ÀԺκÐÀε¥..¸îÀϵ¿¾È ¸øÇÏ°í ÀÖ¾î¿ä..¤Ð¤Ð |
<% elseif MCount(0) > 0 then%>
À̺κÐÀ»
<% else %>
ÀÌ·¸°Ô ¼öÁ¤ÇÏ¿© º¸¼¼¿ä..
> <%
> login_id = request("login_id")
>
> sqlstr = "select Count(mem_id) from member where mem_id ='"&login_id&"'"
> Set MCount = db.execute(sqlstr)
>
> if MCount(0) = 0 then
> '----ºÒ·¯µéÀÌ´Â ³»¿ë----'
> selected = request("selected")
> step = request("step") 'ÀüüÀûÀÎ ±¸ºÐÀÚ.
> ipaddr = request("ipaddr")
> pass = request("pass")
> join_num = request("join_num0")&"^"&request("join_num1")&"^"&request("join_num2")&"^"&request("join_num3")&"^"&request("join_num4")&"^"&request("join_num5")&"^"&request("join_num6")
> kname = request("kname")
> ename = request("ename")
> ename = replace(ename,"'","''")
> email = request("email1")&"@"&request("email2")
> gender = request("gender")
> jumin = request("jumin1")&"-"&request("jumin2")
> office = request("office")
> job = request("job")
> bank = request("bank")
> account = request("account")
> zipcode = request("zip1")&"-"&request("zip2")
> kaddr = request("kaddr1")&"^"&request("kaddr2")
> kaddr = CheckWord(kaddr)
> tel1 = request("atel1")&"-"&request("atel2")&"-"&request("atel3")
> tel2 = request("btel1")&"-"&request("btel2")&"-"&request("btel3")
> tel3 = request("mtel1")&"-"&request("mtel2")&"-"&request("mtel3")
> start_date = request("birth_y1")&"-"&request("birth_m1")&"-"&request("birth_d1")
> end_date = request("birth_y2")&"-"&request("birth_m2")&"-"&request("birth_d2")
> act_limit = request("limit")
> act_time = request("apm0")&"++"&request("apm1")&"++"&request("apm2")&"++"&request("apm3")&"++"&request("apm4")&"++"&request("apm5")&"++"&request("apm6")&"++"&request("apm7")&"++"&request("apm8")&"++"&request("apm9")&"++"&request("apm10")
> comment1 = request("comment1")
> comment1 = CheckWord(comment1)
> comment2 = request("comment2")
> comment2 = CheckWord(comment2)
> lang_first = request("lan_skill1")&"^"&request("lang_grade1")
> lang_second = request("lan_skill2")&"^"&request("lang_grade2")
> lang_third = request("lan_skill3")&"^"&request("lang_grade3")
> location = request("position0")&";"&request("position1")&";"&request("position2")&";"&request("position3")&";"&request("position4")&";"&request("position5")&";"&request("position6")&";"&request("position7")&";"&request("postition8")&";"&request("position9")&";"&request("position10")&";"&request("position11")&";"&request("position12")&";"&request("position13")&";"&request("position14")&";"&request("position15")&";"&request("position16")&";"&request("position17")&";"&request("position18")
>
> if step = "1" or selected = "1" then '¶óÀ̺긮¾ð ÀÔ·Â
> 'KIV_OTHER¿¡ ÀÔ·Â
> SQL = "insert into kiv_other (login_id,passwd,join_num,kname,ename,email,gender,jumin,office,job,bank,account,zipcode,kaddr,tel1,tel2,tel3,start_date,end_date,act_limit,act_time,comment1,comment2,back,member_flag) values"
> SQL = SQL & "('" &login_id& "'"
> SQL = SQL & ",'" &pass& "'"
> SQL = SQL & ",'" &join_num& "'"
> SQL = SQL & ",'" &kname& "'"
> SQL = SQL & ",'" &ename& "'"
> SQL = SQL & ",'" &email& "'"
> SQL = SQL & ",'" &gender& "'"
> SQL = SQL & ",'" &jumin& "'"
> SQL = SQL & ",'" &office& "'"
> SQL = SQL & ",'" &job& "'"
> SQL = SQL & ",'" &bank& "'"
> SQL = SQL & ",'" &account& "'"
> SQL = SQL & ",'" &zipcode& "'"
> SQL = SQL & ",'" &kaddr& "'"
> SQL = SQL & ",'" &tel1& "'"
> SQL = SQL & ",'" &tel2& "'"
> SQL = SQL & ",'" &tel3& "'"
> SQL = SQL & ",'" &start_date& "'"
> SQL = SQL & ",'" &end_date& "'"
> SQL = SQL & ",'" &act_limit& "'"
> SQL = SQL & ",'" &act_time& "'"
> SQL = SQL & ",'" &comment1& "'"
> SQL = SQL & ",'" &comment2& "'"
> SQL = SQL & ",'T'"
> SQL = SQL & ",'T')"
>
> 'MEMBER¿¡ ÀÔ·Â
> MEM = "insert into member (mem_id,mem_pwd,mem_email,mem_addr,mem_ipp,mem_flag,mem_date) values"
> MEM = MEM & "('" &login_id& "'"
> MEM = MEM & ",'" &pass& "'"
> MEM = MEM & ",'" &email& "'"
> MEM = MEM & ",'" &kaddr& "'"
> MEM = MEM & ",'" &ipaddr& "'"
> MEM = MEM & ",'L'"
> MEM = MEM & ",getdate())"
> elseif step = "2" then 'KIV µî·Ï
> SQL = "insert into kiv_other (login_id,passwd,join_num,kname,ename,email,gender,jumin,office,job,bank,account,zipcode,kaddr,tel1,tel2,tel3,start_date,end_date,act_limit,act_time,comment1,comment2,lang_first,lang_second,lang_third,location,back,kiv_flag) values"
> SQL = SQL & "('" &login_id& "'"
> SQL = SQL & ",'" &pass& "'"
> SQL = SQL & ",'" &join_num& "'"
> SQL = SQL & ",'" &kname& "'"
> SQL = SQL & ",'" &ename& "'"
> SQL = SQL & ",'" &email& "'"
> SQL = SQL & ",'" &gender& "'"
> SQL = SQL & ",'" &jumin& "'"
> SQL = SQL & ",'" &office& "'"
> SQL = SQL & ",'" &job& "'"
> SQL = SQL & ",'" &bank& "'"
> SQL = SQL & ",'" &account& "'"
> SQL = SQL & ",'" &zipcode& "'"
> SQL = SQL & ",'" &kaddr& "'"
> SQL = SQL & ",'" &tel1& "'"
> SQL = SQL & ",'" &tel2& "'"
> SQL = SQL & ",'" &tel3& "'"
> SQL = SQL & ",'" &start_date& "'"
> SQL = SQL & ",'" &end_date& "'"
> SQL = SQL & ",'" &act_limit& "'"
> SQL = SQL & ",'" &act_time& "'"
> SQL = SQL & ",'" &comment1& "'"
> SQL = SQL & ",'" &comment2& "'"
> SQL = SQL & ",'" &lang_first& "'"
> SQL = SQL & ",'" &lang_second& "'"
> SQL = SQL & ",'" &lang_third& "'"
> SQL = SQL & ",'" &location& "'"
> SQL = SQL & ",'T'"
> SQL = SQL & ",'0')"
>
> if selected = "0" then 'KIV¸¸ ÇÒ»ç¶÷
> MEM = "insert into member (mem_id,mem_pwd,mem_email,mem_addr,mem_ipp,mem_flag,mem_date) values"
> MEM = MEM & "('" &login_id& "'"
> MEM = MEM & ",'" &pass& "'"
> MEM = MEM & ",'" &email& "'"
> MEM = MEM & ",'" &kaddr& "'"
> MEM = MEM & ",'" &ipaddr& "'"
> MEM = MEM & ",'K'"
> MEM = MEM & ",getdate())"
> elseif selected = "2" then 'KIV + Librarian ÇÒ »ç¶÷
> MEM = "insert into member (mem_id,mem_pwd,mem_email,mem_addr,mem_ipp,mem_flag,mem_date) values"
> MEM = MEM & "('" &login_id& "'"
> MEM = MEM & ",'" &pass& "'"
> MEM = MEM & ",'" &email& "'"
> MEM = MEM & ",'" &kaddr& "'"
> MEM = MEM & ",'" &ipaddr& "'"
> MEM = MEM & ",'D'"
> MEM = MEM & ",getdate())"
> end if
> end if
>
> db.Execute SQL
> db.Execute MEM
> %>
> <meta http-equiv="refresh" content="0; url=reg_end.asp"; charset=euc-kr">
> <% elseif MCount(0) > 0 then%>
> <script language="javascript">
> alert("ÀÌ¹Ì µî·ÏµÈ ¾ÆÀ̵ðÀÔ´Ï´Ù.\n\nÈ®ÀÎÈÄ ´Ù½Ã ½ÃµµÇØ ÁֽʽÿÀ");
> history.back();
> </script>
> <%
> end if
>
> MCount.Close
> db.Close
> Set MCount = Nothing
> Set db = Nothing
> %>
>
>
>
>
>
>
>
> ³Ê¹« ±æÁÒ..¤Ð¤Ð
>
> Çåµ¥ ÀÌ»óÇÑ°Ç DBÀԷ½à DBÀÔ·ÂÀº Á¤»óÀûÀ¸·Î µÇ´Âµ¥..
>
> ºÐ¸íÈ÷ ¾ÆÀ̵ð üũÇÏ°í Åë°úµÈÈÄ DBÀÔ·ÂÀÌ µÇ°í³µÚ ´Ù½Ã À§¿¡ ¾ÆÀ̵ð üũ¸¦
>
> Çؼ Ç×»ó Áߺ¹µÈ ¾ÆÀ̵ð ¶ó°í ÇÕ´Ï´Ù..
>
> ÀÌ°ÍÀú°Í ÇÏ´Ù°¡..Insert¹®Áß Çϳª¸¦ Áö¿ì°í Çϴϱî Á¤»óÀûÀ¸·Î ÀÔ·ÂÀÌ
>
> µÇ´õ¶ó±¸¿ä...
>
> Ȥ½Ã Çѹø¿¡ 2°³ÀÇ Å×ÀÌºí¿¡ ÀÔ·ÂÇÒ¼ö Àִ¹æ¹ýÀº ¾ø´ÂÁö¿ä..
>
> ¾ÆÀ̵ð üũÇÏÁö ¾Ê´Â ÆäÀÌÁö´Â ÀÌ·¸°Ô Çصµ Á¤»óÀûÀ¸·Î µÇ´Âµ¥
>
> ÀÌÆäÀÌÁø DB¿¡ ÀÔ·ÂµÇ°í ´Ù½Ã ÆäÀÌÁö°¡ ÇѹÙÄûµµ´Â°Í °°¾Æ¿ä
>
> Á¦¹ß ¾Ë·ÁÁÖ¼¼¿ä..
-----------------------------------------------------------
|
|
|
|