cookie 가 먹히질 않아요.

kimyh의 이미지

회원가입 프로그램인데 등록폼을 작성하고 다음 화일로 넘기면
cookie 가 먹히질 않아요

그냥 html 화면만 나오고 등록된 내요이 나오질르 않습니다.
참고로 관련화일을 표시하면

1, 쿠키 세팅
$cookieSite = ".budongsan.md"; --->config.php에서 지정

2.이력내용이 1차로 넘어와서 검증화는화일 registrationResponse.php

<?

require("./config.php");
require("./errorMessages.inc");
mysql_connect("$dbHost","$dbUser","$dbPass");
@extract($HTTP_GET_VARS);
@extract($HTTP_POST_VARS);
// 신청한 아이디와 동일한 아이디가 존재하는지 확인한다. 
$result = mysql("$dbName","SELECT count(id) FROM $accountsTable WHERE id = '$id'");
$row = mysql_fetch_row($result);
if ($row[0]) {
   error("ID_EXISTS");
   exit;
}

//주민등록번호를 이용하여 이미 등록한 고객이 이중으로 등록하려는 것은 아닌지를 체크한다.
$result = mysql("$dbName","SELECT count(aid) FROM $accountsTable WHERE ssNum1 = '$ssNum1' AND ssNum2 = '$ssNum2'");
$row = mysql_fetch_row($result);
if ($row[0]) {
   error("SSNUM_EXISTS");
   exit;
}

//일시정지가 아닌 것으로 기본설정
$holding = "no";

// 회원가입 시기를 저장한다. 
$date = time();

//음력 표시가 없으면 양력으로 표시
if(!$calendar) $calendar = "solar";

//aid를 구한다.
$result=mysql("$dbName", "SELECT max(aid) FROM $accountsTable");
$row  =  mysql_fetch_row($result);
if(!$row[0]){
   $newAID = 1;
}else{
   $newAID = $row[0] + 1;
}

// DB에 등록정보 입력
mysql("$dbName", "INSERT INTO $accountsTable (
	aid,
	name,
	ssNum1,
	ssNum2,
	holding,
	id,
	passwd,
	birthYear,
	birthMonth,
	birthDay,
	calendar,
	sex,
	email,
	mailing,
	phone1,
	phone2,
	phone3,
	pPlace,
	cellular1,
	cellular2,
	cellular3,
	zipCode1,
	zipCode2,
	address,
	aPlace,
	mileage,
	date
) VALUES (
	'$newAID',
	'$name',
	'$ssNum1',
	'$ssNum2',
	'$holding',
	'$id',
	'$passwd',
	'$birthYear',
	'$birthMonth',
	'$birthDay',
	'$calendar',
	'$sex',
	'$email',
	'$mailing',
	'$phone1',
	'$phone2',
	'$phone3',
	'$pPlace',
	'$cellular1',
	'$cellular2',
	'$cellular3',
	'$zipCode1',
	'$zipCode2',
 	'$address',
 	'$aPlace',
	'$mileage',
	'$date')");

// 쿠키 생성 처리 루틴 
SetCookie("memberID",$id,$cookieEnduring,"/",$cookieSite);
SetCookie("memberPasswd",$passwd,$cookieEnduring,"/",$cookieSite);

echo ("<meta http-equiv='refresh' content='0; url=./viewAccount.$PHP'>");
?>

3.위의 화일에서 넘어온 viewAccount.php화일

<?

//viewFrom=admin 인 경우의 조회방법을 추가할 것

 
require("./config.php");

require("./errorMessages.inc");

@extract($HTTP_GET_VARS);
@extract($HTTP_POST_VARS);



mysql_connect("$dbHost","$dbUser","$dbPass");



if($viewFrom == 'admin'){

    $result=mysql("$dbName","SELECT * FROM $accountsTable WHERE aid = $aid");

}else{

    $result=mysql("$dbName","SELECT * FROM $accountsTable WHERE id = '$memberID'");

}



while($row = mysql_fetch_array($result)){



   $name = $row[name];

   $ssNum1 = $row[ssNum1];

   $ssNum2 = $row[ssNum2];

   $holding = $row[holding];

   $id = $row[id];

   $passwd = $row[passwd];

   $birthYear = $row[birthYear];

   $birthMonth = $row[birthMonth];

   $birthDay = $row[birthDay];

   $calendar = $row[calendar];

   $sex = $row[sex];

   $email = $row[email];

   $mailing = $row[mailing];

   $phone1 = $row[phone1];

   $phone2 = $row[phone2];

   $phone3 = $row[phone3];

   $pPlace = $row[pPlace];

   $cellular1 = $row[cellular1];

   $cellular2 = $row[cellular2];

   $cellular3 = $row[cellular3];

   $zipCode1 = $row[zipCode1];

   $zipCode2 = $row[zipCode2];

   $address = $row[address];

   $aPlace = $row[aPlace];

   $date = $row[date];



}



if(!strcmp($calendar,"lunar")) {

    $birthMent = "음력";

}else{

    $birthMent = "양력";

}



if(!strcmp($sex,"male")) {

    $sexMent = "남자";

}else{

    $sexMent = "여자";

}



require("./header.inc");

require("./left.inc");



?>



  <table width="100%" border="0" cellspacing="10" cellpadding="0" align="center">

    <tr> 

      <td><img src="images/title_registration.gif" width="171" height="37"> </td>

    </tr>

    <tr> 

      <td> 

        <table width="95%" border="0" cellspacing="0" cellpadding="5" align="center" bgcolor="#F7F7F7">

          <tr> 

            <td colspan="4" bgcolor="#cccccc" height=2></td>

          </tr>

          <tr> 

            <td colspan="4" height="25" bgcolor="#DFEFFF"> 

              <div align="center"><font color="#0066CC">등록된 회원정보는 다음과 같습니다.</font></div>

            </td>

          </tr>

          <tr> 

            <td colspan="4" bgcolor="#cccccc"></td>

          </tr>

          <tr> 

            <td height="40" width="80"> <img src="images/icon02.gif" width="8" height="7" align="absmiddle"> 

              이&nbsp;&nbsp; 름

            </td>

            <td colspan=3> 

              <?echo("$name")?>

            </td>           

          </tr>

          <tr> 

            <td height="40" width="80"> <img src="images/icon02.gif" width="8" height="7" align="absmiddle"> 

              주민번호

            </td>

            <td colspan=3> 

              <?echo("$ssNum1-$ssNum2")?>

            </td>           

          </tr>

          <tr> 

            <td height="40" width="80"> <img src="images/icon02.gif" width="8" height="7" align="absmiddle"> 

              회원ID

            </td>

            <td colspan=3> 

              <?echo("$id")?>

            </td>           

          </tr>

	<? if($viewFrom == 'admin') { ?>

          <tr> 

            <td height="40" width="80"> <img src="images/icon02.gif" width="8" height="7" align="absmiddle"> 

              <b>패스워드</b>

            </td>

            <td colspan=3> 

              <?echo("$passwd")?>

            </td>           

          </tr>

       <? } ?>   

	  <tr> 

            <td height="40"><img src=images/icon02.gif width=8 height=7 align=absmiddle>  

              생년월일

            </td>

            <td colspan="3">

	       <?echo("${birthYear}년 ${birthMonth}월 ${birthDay}일생 [$birthMent]")?>

	    </td>

	  </tr>	

	  <tr> 

            <td height="40"><img src=images/icon02.gif width=8 height=7 align=absmiddle>   

            성&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;별

            </td>

            <td colspan="3">

		<?echo("$sexMent")?></td>

	  </tr>

          <tr> 

            <td height="40"> 

              <div align="left"><img src="images/icon02.gif" width="8" height="7" align="absmiddle"> 

                이 메 일</div>

            </td>

            <td colspan="3"> 

              <a href="mailto:<?echo("$email")?>"><?echo("$email")?></a>

            </td>

          </tr>

          <tr> 

            <td height="40"> 

              <div align="left"><img src="images/icon02.gif" width="8" height="7" align="absmiddle"> 

                전화번호</div>

            </td>

            <td colspan="3"> 

              <?echo("$phone1")?>

              -&nbsp; 

              <?echo("$phone2")?>

              -&nbsp; 

              <?echo("$phone3")?>

<?



	if(!strcmp($pPlace,"home")){

	      echo("[자택]");

	}else{

	      echo("[직장]");

	}			

		

?>

            </td>

          </tr>

          <tr> 

            <td height="40"> 

              <div align="left"><img src="images/icon02.gif" width="8" height="7" align="absmiddle"> 

                휴 대 폰</div>

            </td>

            <td colspan="3"> 

              <?echo("$cellular1")?>

              -&nbsp; 

              <?echo("$cellular2")?>

              -&nbsp; 

              <?echo("$cellular3")?>

            </td>

          </tr>



          <tr> 

            <td height="40"> <img src="images/icon02.gif" width="8" height="7" align="absmiddle"> 

              우편번호</td>

            <td colspan="3"> 

              <?echo("$zipCode1")?>

              -&nbsp; 

              <?echo("$zipCode2")?>

              

          <?



	if(!strcmp($aPlace,"home")){

	      echo("[자택]");

	}else{

	      echo("[직장]");

	}

				

?>

              

              </td>

          </tr>

          <tr> 

            <td height="40"> <img src="images/icon02.gif" width="8" height="7" align="absmiddle"> 

              주&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;소</td>

            <td colspan="3"> 

              <?echo("$address")?>

            </td>

          </tr>



          <tr> 

            <td colspan="4" bgcolor="#cccccc" height=2></td>

          </tr>

        </table>

      </td>

    </tr>



  </table>

<br><p>

<?

require("./footer.inc");

?>

registrationResponse.php 화일에서 echo 문으로 확인해보면 db에 모든내요이 잘 저장되고 있습니다.
등록 내용이 나오지 않고 웹 화면만 나옴.

선배님들 도와 주세요.
아마 registrationResponse.php 화일의 맨 뒷부분이 문제가 있는게 아닌가요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.