아이디 찾기 질문드립니다.
본문
안녕하세요.
아이디 칮기를 사이트 내에서 하고자 그누4에 적용하는 걸 찾아서 수정하려고 하는데 어떻게 수정을 해야 하는지요?
일단 g4로 된것만 g5로 바꿨는데 않되네요.
<?
include_once("./_common.php");
$g5['title'] = "아이디 찾기";
include_once("./_head.php");
?>
<style>
/* Type Selector */
*{margin:0; padding:0;}
input[type="text"] {}
img, fieldset, button{border:none;}
.input_text{ padding: 5px 0 0 3px; display:inline; position:relative; width:174px; height:20px;border:1px solid #d4d4d4; color:#444; font-size:14px; vertical-align:middle; }
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6"><img src="help_img/box1_left.gif" alt="" /></td>
<td style="background-image:url(help_img/box1_bg.gif); background-repeat:repeat-x; padding-left:40px; font-weight:bold;">아이디 찾기</td>
<td width="6"><img src="help_img/box1_right.gif" alt="" /></td>
</tr>
<tr>
<td style="background-image:url(help_img/box2_left.gif); background-repeat:repeat-y; background-position:left;"></td>
<td style="padding:25px 0 25px 39px; font-weight:normal; color:#656565; line-height:140%; border-bottom:1px solid #eaeaea;">아이디를 잊으셨나요?<br />
아이디 확인에 필요한 정보 (이름, 이메일 주소)를 입력하여 주세요.<br />
<br />
※ 아이디 정보는 전체 노출입니다. 정보가 노출 될 수 있으니 주의하세요!</td>
<td style="background-image:url(help_img/box2_right.gif); background-repeat:repeat-y; background-position:right;"></td>
</tr>
<tr>
<td style="background-image:url(help_img/box2_left.gif); background-repeat:repeat-y; background-position:left;"></td>
<td align="center" style="padding:20px 40px 20px 40px;"><form method="post" name="m_help" style="margin:0; padding:0;"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100" height="37"><img src="help_img/bullet.gif" alt="" /> 이름</td>
<td width="145"><input name="r2name" id="r2name" type="text" style="width:145px;" accesskey="L" maxlength="30" /></td>
<td width="73" rowspan="2" style="padding-left:5px;"><img src="help_img/btn_ok.gif" alt="확인" onClick="find_id();" /></td>
<td rowspan="2" style="padding-left:15px;"><div id="msg_id">정보를 입력해주세요.</div></td>
</tr>
<tr>
<td height="37"><img src="help_img/bullet.gif" alt="" width="8" height="8" /> 이메일</td>
<td><input name="r2email" id="r2email" type="text" style="width:145px;" /></td>
</tr>
</table>
</form></td>
<td style="background-image:url(help_img/box2_right.gif); background-repeat:repeat-y; background-position:right;"></td>
</tr>
<tr>
<td><img src="help_img/box3_left.gif" alt="" /></td>
<td style="background-image:url(help_img/box3_bg.gif); background-repeat:repeat-x; background-position:bottom;"></td>
<td><img src="help_img/box3_right.gif" alt="" /></td>
</tr>
</table>
<script>
function find_id() {
$('#msg_id').slideUp();
$.ajax({
type: 'POST',
url: './member_helper_id.php',
data: {
'name': $('#r2name').val(),
'email': $('#r2email').val()
},
cache: false,
async: false,
success: function(result) {
var msg = $('#msg_id');
if(result=="000"){
msg.html("<br />요청하신 정보로 검색되는 아이디는 없습니다.");
$('#msg_id').slideDown();
}
else{
msg.html("<br />검색된 회원님의 아이디는 <br /><span style='font-weight:bold;'>"+result+"</span> 입니다.");
$('#msg_id').slideDown();
}
}
});
}
</script>
<?
include_once("./_tail.php");
?>
************************************************************************
member_helper_id.php
************************************************************************
<?php
include_once("_common.php");
if ($g5['charset'] != "utf-8")
$name = iconv( "UTF-8", "CP949", $name );
$result = sql_query(" select mb_id from $g5[member_table] where mb_name='$name' and mb_email='$email' ");
//echo "select mb_id from $g4[member_table] where mb_name='$name' and mb_email='$email";
$row = sql_fetch_array($result);
if ($row[mb_id]) {
echo "$row[mb_id]";
} else {
echo "000";
}
?>