<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->

<!--#include file = "config.asp" -->

<%

R_Fields = "mc_idx, mc_agree, mc_addr, mc_nickname, mc_phone, mc_mobile, mc_email, mc_homepage, mc_joinlevel, mc_wdate, mc_agree_str, mc_jumin"
Call RequestAll (R_Fields, "")

mc_agree_str		= InputValue2(request("mc_agree_str"))

If mc_idx = "" Then  ' 저장

	sql = "delete from member_config"
	Dbcon.execute sql
	
	R_Fields_i = "mc_agree, mc_addr, mc_nickname, mc_phone, mc_mobile, mc_email, mc_homepage, mc_joinlevel, mc_wdate, mc_agree_str, mc_jumin"
	
	mc_wdate = getDateFm(now,3)

	Call InsertQuery (R_Fields_i, "member_config")

	ok_url = "write.asp"


else ' 수정


	R_Fields_u = "mc_agree, mc_addr, mc_nickname, mc_phone, mc_mobile, mc_email, mc_homepage, mc_joinlevel, mc_wdate, mc_agree_str, mc_jumin"

	mc_wdate = getDateFm(now,3)

	Call UpdateQuery (R_Fields_u, "member_config", "where mc_idx="&mc_idx)

	ok_url = "write.asp"


End if

Dbcon.close : Set Dbcon = Nothing

Call loding("0", ok_url)

%>