① 계정(호스팅-서버관리) 회사 이름 : 가비아
② php , mysql 버전 : 모르겠어요;; ㅠ
③ 제로보드 버젼(날짜 포함) : 최신버전(07년 12월꺼)
④ 에러나는 주소와 에러 부분 소스(필수) : 짚코드 입력이 제대로 안됩니당
⑤ 주로 쓰고 있는 스킨 이름이나 소스  : 제로보드4 기본스킨 & 대류님 스킨...
⑥ 질문 내용 : zipcode


제로보드의 search_zipcode3.php 입니다
회원가입시 우편번호 검색을 하려구 검색버튼 누르고,
새창이 뜨면 OO동 입력후 검색을 누르면 목록이 주욱 뜨는데
주소를 찾아서 클릭하면
빈 공란에 주소가 채워지지 않고
오류가 있다면서 창이 그대로 떠있는데
(그 창 끄고 다시 입력하면 이상하게도 제대로 작동하구요)

밑에다 넘 긴걸 첨부해서~~~ 죄송스럽습니다...




<?
ini_set('memory_limit', '20M');

$zipfile = file("./zip.db");
$search_count = 0;

if ($addr1)
{
    while ($zipcode = each($zipfile))
    {
        if(strstr(substr($zipcode[1],9,512), $addr1))
        {
            $list[$search_count][zip1] = substr($zipcode[1],0,3);
            $list[$search_count][zip2] = substr($zipcode[1],4,3);   
            $addr = explode(" ", substr($zipcode[1],8));

            if ($addr[sizeof($addr)-1])
            {
                $list[$search_count][addr] = str_replace($addr[sizeof($addr)-1], "", substr($zipcode[1],8));
                $list[$search_count][bunji] = trim($addr[sizeof($addr)-1]);
            }
            else
                $list[$search_count][addr] = substr($zipcode[1],8);

            $list[$search_count][encode_addr] = urlencode($list[$search_count][addr]);
            $search_count++;
        }   
    }

    if (!$search_count) echo ("찾으시는 주소가 없습니다.");
}

?>
<html>
<head>
<title>Search ZipCode</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="style.css" type="text/css">

<script>
<!--
function postaddr(zip1, zip2, addr1)
{
    var of = opener.document.<?=$frm_name?>;

    of.zip1.value  = zip1;
    of.zip2.value  = zip2;

    of.addr1.value = addr1;
    of.addr2.focus();
    window.close();
    return false;
}
-->
</script>

</head>

<body bgcolor=white leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table width=100% cellpadding=5 cellspacing=0>
<tr><td>

 <table width=100% cellpadding=0 cellspacing=0>
 <tr>
  <td height=23 valign=top>총 <?=$search_count?>건 가나다순</td>
 </tr>
 <?
 for ($i=0; $i<count($list); $i++)
 {
  echo "<tr><td height=23><a href='javascript:;' onclick=\"postaddr('{$list[$i][zip1]}', '{$list[$i][zip2]}', '{$list[$i][addr]}');\">{$list[$i][zip1]}-{$list[$i][zip2]} : {$list[$i][addr]} {$list[$i][bunji]}</a></td></tr>\n";
 }
 ?>
 </table>

</td></tr>
<tr><td align=center>
 <a href=# onclick=history.go(-1)><font color=black>뒤로가기</a> <font color=bbbbbb>|</font> <a href=# onclick=window.close()><font color=black>창 닫기</a>
</td></tr>
</table>

</body>
</html>