|
|
|
|
俵ÀÌ / 2001-12-29 / ¿ÀÈÄ 5:33:28 / 203.255.3.190
Á¶È¸¼ö : 152
|
[Áú¹®] ¹ÌÄ¡°Ú´Ù,,,±¸¹®¿¡·¯ Á» ÇØ°áÇØ Áֽʽÿä.. |
> <%@ Language=VBScript %>
>
> <%
> if Request("IsWrite") = "TRUE" then
> set dbCon = Server.CreateObject("ADODB.Connection")
> dbCon.Open "health", "", ""
> dbCon.Execute "INSERT INTO salyung(from,grade,name,aim.mon,tue,wed,thu,fri,sat,sun) VALUES ('" & _
> Request("from") & "', '" & _
> Request("grade") & "', '" & _
> Request("name") & "', '" & _
> Request("aim") & "', '" & _
> Request("mon") & "', '" & _
> Request("tue") & "', '" & _
> Request("wed") & "', '" & _
> Request("thu") & "', '" & _
> Request("fri") & "', '" & _
> Request("sat") & "', '" & _
> Request("sun") & "')"
>
> Response.redirect "List.asp"
> end if
>
>
>
> %>
>
> <html>
>
> <head>
> <meta http-equiv="Content-Type"
> content="text/html; charset=ks_c_5601-1987">
> <meta name="GENERATOR"
> content="Microsoft FrontPage (Visual InterDev Edition) 2.0">
> <title>±Û ¿Ã¸®±â</title>
> </head>
> <body bgcolor="#ffffff">
>
> <h1>±Û ¿Ã¸®±â</h1>
>
> <hr>
>
> <form action="write.asp" method="post">
> <table border="1" cellpadding="6" cellspacing="0">
> <tr>
> <td align="middle" bgcolor="#e2f1fe">¼Ò¼Ó</td>
> <td><input name="from" ></td>
> <td align="middle" bgcolor="#e2f1fe" colspan="2">°è±Þ</td>
> <td><input name="grade" ></td>
> </tr>
> <tr> <td align="middle" bgcolor="#e2f1fe">¼º¸í</td>
> <td><input name="name" ></td>
> <td align="middle" bgcolor="#e2f1fe" colspan="2">¸ñÇ¥·®</td>
> <td><input name="aim" ></td>
> </tr>
> <tr> <td align="middle" bgcolor="#e2f1fe">¿ù¿äÀÏ</td>
> <td><input name="mon" ></td>
> <td align="middle" bgcolor="#e2f1fe" colspan="2">È¿äÀÏ</td>
> <td><input name="tue" ></td>
> </tr></TR>
> <tr> <td align="middle" bgcolor="#e2f1fe">¼ö¿äÀÏ</td>
> <td><input name="wed" ></td>
> <td align="middle" bgcolor="#e2f1fe" colspan="2">¸ñ¿äÀÏ</td>
> <td><input name="thu" ></td>
> </tr>
> <tr> <td align="middle" bgcolor="#e2f1fe">±Ý¿äÀÏ</td>
> <td><input name="fri" ></td>
> <td align="middle" bgcolor="#e2f1fe" colspan="2">Åä¿äÀÏ</td>
> <td><input name="sat" ></td>
> </tr>
> <tr> <td align="middle" bgcolor="#e2f1fe">ÀÏ¿äÀÏ</td>
> <td><input name="sun" ></td>
> <td align="middle" bgcolor="#e2f1fe" colspan="2"></td>
> <td></td>
> </tr>
> </table>
> <p>
> <input type="submit" name="cmdOK" value="È®ÀÎ">
> <input type="reset" name="cmdReset" value="ÃʱâÈ">
> <input type="hidden" name="IsWrite" value="TRUE">
> </p>
> </form>
> </body>
> </html>
>
> ############################################
>
> ÀÌ·¸°Ô ¼Ò½º¸¦ ÀÛ¼ºÇÏ°í ÆäÀÌÁö¸¦ ÀоîµéÀ̸é,
> óÀ½¿¡ ÀÔ·Ââ ¶¸´Ù°¡ È®ÀÎ ´·¯¼ º¸³»¸é
> 7¹ø° ÁÙÀÇ INSERT±¸¹®ÀÇ ±¸¹®¿¡·¯¶ó°í ÀÚ²Ù ¶ß³×¿ä...
> ÀÌ°Å ¶«¿¡ 2½Ã°£ µ¿¾È Çì¸Þ°í ÀÖ½À´Ï´Ù...
> ¼öÁ¤ Á» ÇØÁֽʽÿä...
>
>
> % DSNÀ̸§Àº healthÀÌ°í Å×À̺í À̸§Àº salyung ¿ä°Ì´Ï´Ù.
-----------------------------------------------------------
aim.monÀÌ ¾Æ´Ï°í aim, mon ¾Æ´Ñ°¡¿ä?
|
|
|
|