$addr1 변수는 어디에서 넘어오는 건가요? 정보
$addr1 변수는 어디에서 넘어오는 건가요?본문
초보 질문 드립니다.
답변 부탁 드리겠습니다.
zip.php 파일에서 "$addr1" 변수는 어디에서 받아 온건가요?
----------------------------zip.php------------------------------
$zipfile = array();
$fp = fopen("./zip.db", "r");
while(!feof($fp)) {
$zipfile[] = fgets($fp, 4096);
}
fclose($fp);
$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);
답변 부탁 드리겠습니다.
zip.php 파일에서 "$addr1" 변수는 어디에서 받아 온건가요?
----------------------------zip.php------------------------------
$zipfile = array();
$fp = fopen("./zip.db", "r");
while(!feof($fp)) {
$zipfile[] = fgets($fp, 4096);
}
fclose($fp);
$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);
댓글 전체
처음 zip.php가 실행 될때는 $addr1은 값이 없습니다
member/basic/zip.skin.php 를 include하여 읍면동 입력후 submit되면
자신이 다시 호줄 되면서 값이 넘어옵니다
member/basic/zip.skin.php 를 include하여 읍면동 입력후 submit되면
자신이 다시 호줄 되면서 값이 넘어옵니다
submit 하는 부분은 도대체 어디죠?