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

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

<%

R_Fields = "mc_idx, mc_addr, mc_nickname, mc_phone, mc_mobile, mc_email, mc_homepage, mc_joinlevel, mc_wdate, mc_jumin, mc_mailing, mc_sms, mc_sex, mc_birth, mc_fax, mc_marry, mc_marrydate, mc_job, mc_text, mc_nickname_req, mc_jumin_req, mc_sex_req, mc_birth_req, mc_phone_req, mc_fax_req, mc_mobile_req, mc_email_req, mc_addr_req, mc_homepage_req, mc_marry_req, mc_marrydate_req, mc_job_req, mc_text_req, mc_recom, mc_recom_point, mc_new_point, mc_agree, mc_agree_str, mc_info, mc_info_str"
Call RequestAll (R_Fields, "")

mc_agree_str		= InputValue2(request("mc_agree_str"))
mc_info_str		= InputValue2(request("mc_info_str"))

If mc_idx = "" Then  ' 저장

	sql = "delete from member_config"
	Dbcon.execute sql
	
	R_Fields_i = "mc_idx, mc_addr, mc_nickname, mc_phone, mc_mobile, mc_email, mc_homepage, mc_joinlevel, mc_wdate, mc_jumin, mc_mailing, mc_sms, mc_sex, mc_birth, mc_fax, mc_marry, mc_marrydate, mc_job, mc_text, mc_nickname_req, mc_jumin_req, mc_sex_req, mc_birth_req, mc_phone_req, mc_fax_req, mc_mobile_req, mc_email_req, mc_addr_req, mc_homepage_req, mc_marry_req, mc_marrydate_req, mc_job_req, mc_text_req, mc_recom, mc_recom_point, mc_new_point, mc_agree, mc_agree_str, mc_info, mc_info_str"
	
	mc_wdate = getDateFm(now,3)

	Call InsertQuery (R_Fields_i, "member_config")

	ok_url = "write.asp"


else ' 수정


	R_Fields_u = "mc_addr, mc_nickname, mc_phone, mc_mobile, mc_email, mc_homepage, mc_joinlevel, mc_wdate, mc_jumin, mc_mailing, mc_sms, mc_sex, mc_birth, mc_fax, mc_marry, mc_marrydate, mc_job, mc_text, mc_nickname_req, mc_jumin_req, mc_sex_req, mc_birth_req, mc_phone_req, mc_fax_req, mc_mobile_req, mc_email_req, mc_addr_req, mc_homepage_req, mc_marry_req, mc_marrydate_req, mc_job_req, mc_text_req, mc_recom, mc_recom_point, mc_new_point, mc_agree, mc_agree_str, mc_info, mc_info_str"

	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)

%>