´ç½Å¿¡°Ô·Î ¶°³ª´Â ²Þ¼Ó¿©Çà - ²Þ¼Ó³ª¶ó(http://www.inyourdream.net)
ID¿Í Password¸¦ ÀÔ·ÂÇϼ¼¿ä.
ÀÔ±¹Çϱâ
|
¿µÁÖ±Ç ½Åû
¸öºÎ¸² °ñ¶ó°ñ¶ó
¼Ò±Ù¼Ò±Ù
µµ¶õµµ¶õ
³«¼¸¶´ç
Âø°¢ÇѾÆÀÌ
¼ýÀÚ¸ÂÃß±â
¼Ò¿øºô±â
ÈçÀû³²±â±â
²Þ¼Ó¿©Çà
Ä£±¸Áý ³î·¯°¡±â
¸ðµÎµå¸²´ÔÀÇ È¨
î¤éÞ´ÔÀÇ È¨
Çö¿ì´ÔÀÇ È¨
º°¾ÆÇØ´ÔÀÇ È¨
ÇÞ»ì´ÔÀÇ È¨
À̳ª´Ï´ÔÀÇ È¨
À¯¸®¾Ë´ÔÀÇ È¨
³È³ÈÀÌ´ÔÀÇ È¨
²ÀÁö´ÔÀÇ È¨
´ë¼º´ÔÀÇ È¨
µî·ÏÇϽǶ§´Â ÇʼöÇ׸ñÀ» ¸ðµÎ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.
À̸§
*
HTML »ç¿ë
Á¦¸ñ
*
¼±ÅÃ
ÀÚÀÛ
»ç¶û
À¯¸Ó
ÀÚÀ¯
̵̧
¾Ë¸²
Áú¹®
±âŸ
³»¿ë
*
> c_insert.asp > > <%response.buffer = true%> > <% > Set DbCon = Server.CreateObject("ADODB.Connection") > DbCon.Open ("DSN=ASP;UID=sa;PWD=;") > SQLString = "SELECT MAX(no) FROM asptable" > Set Result = DbCon.Execute( SQLString ) > MaxNO = Result(0) + 1 > subject = Request("subject") > subject = Replace(subject, "'","''") > > If subject="" Then > session("msg")="Á¦¸ñ ¾Ê½è³×¿ä... ^^;" > Redirect > End If > > writer = Request("writer") > If writer="" Then > session("msg")="À̸§ ¾Ê¾²¸é ´©°¡ ½è´ÂÁö ¸ð¸£Áö¿ä!" > Redirect > End If > > content = Replace(Request("content"), "'","''") > If content ="" Then > session("msg")="³»¿ëÀ» ½á¾ßÁö¿ä? ¶¨..." > Redirect > End If > > email= Request("email") > If email ="" Then > email = " " > End If > > passwd = Request("passwd") > If passwd ="" Then > passwd = " " > End If > > sql="INSERT INTO asptable (no,subject,writer,email,visited,date,passwd,content)" > sql=sql &"values ("& MaxNO & ",'" > sql=sql & subject &"','" > sql=sql & writer &"','" > sql=sql & email &"',0,'" > sql=sql & date &"','" > sql=sql & passwd &"','" > sql=sql & content &"')" > Set Result = DbCon.Execute(sql) > DbCon.Close > > Response.Redirect "c_InsertResult.htm" > %> > > ¸ÇÀ§¿¡ ³»¿ëó·³ <%response.buffer =true%>¶ó°í Çߴµ¥ ¿ª½Ã ¶È°°Àº error message°¡ ³ª¿Í source¸¦ ¿Ã¸³´Ï´Ù.... > ºü¸¥ ´äº¯ ºÎŹµå¸³´Ï´Ù... > > > > > > -----------------------------------------------------------
Ãß°¡ÇÒ À̹ÌÁö¸¦ ÀÔ·ÂÇϼ¼¿ä.
À̹ÌÁö 1
À̹ÌÁö¼³¸í 1
Ãß°¡ÇÒ ÀڷḦ ÀÔ·ÂÇϼ¼¿ä.
ÀÚ·á 1
ÀÚ·á¼³¸í 1
Ãß°¡ÇÒ ½ÎÀÌÆ®¸¦ ÀÔ·ÂÇϼ¼¿ä.
°ü·Ã½ÎÀÌÆ® 1
½ÎÀÌÆ®¼³¸í 1
Password
*