´ç½Å¿¡°Ô·Î ¶°³ª´Â ²Þ¼Ó¿©Çà - ²Þ¼Ó³ª¶ó(http://www.inyourdream.net) ÀÔ±¹Çϱâ | ¿µÁÖ±Ç ½Åû
  • ¸öºÎ¸² °ñ¶ó°ñ¶ó
  • ¼Ò±Ù¼Ò±Ù
  • µµ¶õµµ¶õ
  • ³«¼­¸¶´ç
  • Âø°¢ÇѾÆÀÌ
  • ¼ýÀÚ¸ÂÃß±â
  • ¼Ò¿øºô±â
  • ÈçÀû³²±â±â
  • ²Þ¼Ó¿©Çà
  • Ä£±¸Áý ³î·¯°¡±â
  • ¸ðµÎµå¸²´ÔÀÇ È¨
  • î¤éÞ´ÔÀÇ È¨
  • Çö¿ì´ÔÀÇ È¨
  • º°¾ÆÇØ´ÔÀÇ È¨
  • ÇÞ»ì´ÔÀÇ È¨
  • À̳ª´Ï´ÔÀÇ È¨
  • À¯¸®¾Ë´ÔÀÇ È¨
  • ³È³ÈÀÌ´ÔÀÇ È¨
  • ²ÀÁö´ÔÀÇ È¨
  • ´ë¼º´ÔÀÇ È¨
  • ÁÖÁ¤ÀÓ / 2002-07-29 / ¿ÀÈÄ 9:59:36 / 203.232.32.2
    Á¶È¸¼ö : 172
    [Áú¹®] ¸çÄ¥ ° ȸ¿ø°¡ÀÔ ¶«¿¡ ¹ã»õ´Ù ±Û ¿Ã¸³´Ï´Ù... ¤Ð.¤Ð
    ¸çÄ¥ ° °í¹ÎÇÏ´Ù °á±¹ µµ¿òÀ» ûÇÏ°íÀÚ ÀÌÄÉ ±Û ¿Ã¸³´Ï´Ù.
    ÷¿£ Microsoft VBScript ÄÄÆÄÀÏ ¿À·ù error '800a0409'

    Á¾°áµÇÁö ¾ÊÀº ¹®ÀÚ¿­ »ó¼öÀÔ´Ï´Ù.

    /join_ok.asp, line 34

    SQL = "INSERT INTO join (user_id, password, name, reg_num1, reg_num2, sex, birth_y, birth_m, birth_d, birthtype, job,
    ---------------------------------------------------------------------------------------------------------------------^
    À̶ó´Â ÀÌ·± ¿À·ù°¡ ¶ß´õ´Ï, ´Ù½Ã »õ·Î °íħÇÏ´Ï±î ±×ÀÌÈķδ °è¼Ó ÆäÀÌÁö¸¦ ãÀ»¼ö ¾ø´Ù°í Çϳ׿ä...
    È®ÀÎÇØ º¸¸é HTTP403 - »ç¿ë±ÝÁö ¿À·ù¶ó°í ³ª¿À°Åµç¿ä... ¿ÖÀÌ·¯ÁÒ?
    SqlÀ̶û ODBC ¿¬°á Á¦´ë·Î ÇØÁá°Åµç¿ä.
    <%
    ' 3¡­18ÁÙ ±îÁö "join.htm"¿¡¼­ ³Ñ°ÜÁØ °ªÀ» Request °´Ã¼ÀÇ Form Ä÷º¼ÇÀ» ÀÌ¿ëÇÏ¿© º¯¼ö¿¡ ÀúÀå
    user_id=Request.Form("user_id")
    password=Request.Form("password")
    name=Request.Form("name")
    reg_num=Request.Form("reg_num1") &"-"& Request.Form("reg_num2")
    sex=Request.Form("sex")
    birthday=Request.Form("birth_y") &"."& Request.Form("birth_m") &"."& Request.Form("birth_d")
    birtytype=Request.Form("birthtype")
    job=Request.Form("job")
    teltype=Request.Form("teltype")
    tel=Request.Form("tel1") &"-"& Request.Form("tel2") &"-"& Request.Form("tel3")
    email=Request.Form("email")
    content=Request.Form("content")
    joinday=Request.Form("joinday")

    ' ADODB¸¦ »ç¿ëÇØ µ¥ÀÌÅͺ£À̽º ¿¬°áÀ» Çϱâ À§ÇØ CreateObject¸¦ ÀÌ¿ë. À̶§ ¼³Á¤ÇÑ °ªÀ» ÀúÀåÇϱâ À§ÇØ º¯¼ö con »ç¿ëÇÑ´Ù.
    Set con = Server.CreateObject("ADODB.Connection")
    ' "DSN=join"À» ¿­¾úÀ» ¶§ 'jjy' °èÁ¤»ç¿ë.
    con.Open ("DSN=join; UID=jjy; PWD=1119")

    ' °°Àº ID°¡ ÀÖ´ÂÁö È®ÀÎÇϱâ À§ÇØ ID¸¦ selectÇÑ´Ù.
    SQL = " SELECT user_id from join where user_id =' " & Request("user_id") & " ' "
    set result=con.Execute (SQL)
    ' °°Àº Áֹεî·Ï¹øÈ£°¡ ÀÖ´ÂÁö È®ÀÎ.
    SQL = " SELECT reg_num from join where reg_num =' " & Request("reg_num") & " ' "
    set rec=con.Execute (SQL)

    ' ¸¸ÀÏ "join" Å×ÀÌºí¿¡ id°¡ ÀúÀåµÇ¾î ÀÖ´Ù¸é
    if not result.EOF then

    <script language="javascript">
    <!-- ¸¸¾à »ç¿ëÀÚ°¡ ÀÔ·ÂÇÑ ID°¡ µ¥ÀÌÅͺ£À̽º¿¡ ÀúÀåµÈ ID¿Í ÀÏÄ¡Çϸé, ´ÙÀ½°ú °°ÀÌ "ID°¡ Á¸ÀçÇÕ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä."¶ó´Â ¸Þ½ÃÁö â Ãâ·Â -->
    alert("ID°¡ Á¸ÀçÇÕ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
    <!-- ID¸¦ ´Ù½Ã ÀÔ·ÂÇÒ ¼ö ÀÖµµ·Ï ÀÌÀü È­¸éÀ¸·Î µ¹¾Æ°£´Ù-->
    history.back();
    </script>

    ' ¸¸ÀÏ "join" Å×ÀÌºí¿¡ Áֹεî·Ï¹øÈ£°¡ ÀúÀåµÇ¾î ÀÖ´Ù¸é
    else if not rec.EOF then

    <script language="javascript">
    <!-- ¸¸¾à »ç¿ëÀÚ°¡ ÀÔ·ÂÇÑ Áֹεî·Ï¹øÈ£°¡ µ¥ÀÌÅͺ£À̽º¿¡ ÀúÀåµÈ Áֹεî·Ï¹øÈ£¿Í ÀÏÄ¡Çϸé, ´ÙÀ½°ú °°ÀÌ "Áֹεî·Ï¹øÈ£°¡ Á¸ÀçÇÕ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä."¶ó´Â ¸Þ½ÃÁö â Ãâ·Â -->
    alert("Áֹεî·Ï¹øÈ£°¡ Á¸ÀçÇÕ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
    history.back();
    </script>


    ' ¸¸ÀÏ "join" Å×ÀÌºí¿¡ ÀÚ·á°¡ ¾ø´Ù¸é, ´ÙÀ½ ¼öÇà
    else
    ' º¯¼ö SQL¿¡ ÀÔ·ÂÇÑ °ªÀ» ÀúÀå. ÀÌ ¶§ ÀÔ·ÂÇÑ Á¤º¸´Â µ¥ÀÌÅͺ£À̽º ÆÄÀÏ¿¡ ÀúÀå.
    SQL = "INSERT INTO join (user_id, password, name, reg_num, sex, birthday, birthtype, job, teltype, tel, email, content, joinday) values(' "
    SQL=SQL & "(' " & user_id & " ' "
    SQL=SQL & ",' " & password & " ' "
    SQL=SQL & ",' " & name & " ' "
    SQL=SQL & ",' " & reg_num & " ' "
    SQL=SQL & ",' " & sex & " ' "
    SQL=SQL & ",' " & birthday & " ' "
    SQL=SQL & ",' " & birthtype & " ' "
    SQL=SQL & ",' " & job & " ' "
    SQL=SQL & ",' " & teltype & " ' "
    SQL=SQL & ",' " & tel & " ' "
    SQL=SQL & ",' " & email & " ' "
    SQL=SQL & ",' " & content & " ' "
    SQL=SQL & ",' " & now() & " ')"

    'Response.write SQL
    con.Execute SQL

    Response.Cookies("MyNet").Expires=#12/31/2010 00:00:00#
    Response.Cookies("Mynet")("name")=name
    Response.Cookies("MyNet")("user_id")=user_id

    '°¡ÀÔ ¿Ï·á âÀ¸·Î ³Ñ¾î°£´Ù.
    Response.Redirect "join_ok.asp"
    %>

    <% end if %>

    <%
    ' ȸ¿ø °ü¸® µ¥ÀÌÅͺ£À̽ºÀÇ ±â·Ï°ú ¿¬°á ¼³Á¤À» ´Ý´Â´Ù.
    rec.close
    result.close
    con.close
    ' ȸ¿ø °ü¸® µ¥ÀÌÅͺ£À̽ºÀÇ ±â·Ï°ú ¿¬°á ¼³Á¤À» ÃʱâÈ­ÇÑ´Ù.
    set rec=Nothing
    set result=nothing
    set con=Nothing
    %>
    Byte * 200 Byte À̳»·Î ÀÔ·ÂÇϼ¼¿ä À̸§ : Æнº¿öµå :