|
|
|
|
¹®Èñö / 2000-06-19 / ¿ÀÀü 10:45:30 / 211.51.20.144
Á¶È¸¼ö : 108
|
[Áú¹®] ¼öÁ¤À» Çϴϱî,Àüü µ¥ÀÌÅÍ°¡ Çϳª·Î º¯°æµÆ¾î¿ä |
¾È³çÇϽʴϱî ?
¿¹Àü¿¡ 俵´ÔÀ» ±ÍÂú°Ô Çصå·È´ø ¼Ò½º¿¡ ¹®Á¦°¡ ¹ß»ýÇؼ ÀÌ·¸°Ô ±ä±ÞÇÏ°Ô ±ÛÀ» ³²±é´Ï´Ù.
¿ì¼±Àº ±âÁ¸¿¡ µ¥ÀÌÅÍ°¡ ÀÖÀ» °æ¿ì ¸»ÀÔ´Ï´Ù.¼öÁ¤À¸·Î ÇÑ°¡Áö µ¥ÀÌÅ͸¦ ÇϸéÀº ¸ðµç µ¥ÀÌÅÍ°¡ ¼öÁ¤Çß´ø µ¥ÀÌÅÍ·Î ¹Ù²Ù¾î ¹ö·È°Åµç¿ä...
ÀÌ ¹®Á¦ Á» ÇØ°á ÇØÁÖ¼¼¿ä
¼Ò½º´Â ´ÙÀ½°ú °°½À´Ï´Ù.
<%
'request°³Ã¼¸¦ ÅëÇØ ³Ñ¾î¿Â °ªµéÀ» º¯¼ö¿¡ ÀúÀå
name = request("name")
email = request("email")
url = request("url")
title = request("title")
company = request("company")
country = request("country")
vdate = request("vdate")
mcode = request("mcode")
pregident = request("pregident")
depart = request("depart")
addre = request("addre")
tel = request("tel")
fax = request("fax")
pwd = request("pwd")
content = request("content")
Set db = Server.CreateObject("ADODB.Connection")
db.Open("offer")
'ÇöÀçÀÇ ±ÛÀÇ ºñ¹Ð¹øÈ£¸¦ °¡Á®¿À´Â Äõ¸®¹®À» ÀÛ¼º
SQL = "Select pwd from myboard where board_idx = " & request("idx")
set result = db.execute(SQL)
pwd=result("pwd")
Set db = Nothing
'ÀԷ¹ÞÀº ºñ¹Ð¹øÈ£¿Í ½ÇÁ¦ ºñ¹Ð¹øÈ£¸¦ ºñ±³ÇÏ¿© ÀÏÄ¡ÇÑ´Ù¸é
if request("pwd") = pwd then
Set db = Server.CreateObject("ADODB.Connection")
db.Open("offer")
SQL = "UPDATE myboard set name = '" & name &"'"
SQL = SQL & ",email = '" & email & "'"
SQL = SQL & ",url= '" & url & "'"
SQL = SQL & ",title='" & title & "'"
SQL = SQL & ",company='" & company & "'"
SQL = SQL & ",country='" & country & "'"
SQL = SQL & ",vdate='" & vdate & "'"
SQL = SQL & ",mcode='" & mcode & "'"
SQL = SQL & ",pregident='" & pregident & "'"
SQL = SQL & ",depart='" & depart & "'"
SQL = SQL & ",addre='" & addre & "'"
SQL = SQL & ",tel='" & tel & "'"
SQL = SQL & ",fax='" & fax & "'"
SQL = SQL & ",content='" & content & "'"
SQL = SQL & " where board_idx = "& request("idx")
db.execute SQL
Set db = Nothing
Response.Redirect "list.asp"
'µ¥ÀÌÅͺ£À̽º¿¡ ÇöÀçÀÇ ·¹Äڵ带 updateÇÏ°í ¸®½ºÆ®·Î µ¹¾Æ°£´Ù.
else
%>
< script language="javascript" >
alert(" No ...password");
history.back();
< /script >
<%
end if
%> |
|
|
|