묻고답하기

http://www.ywa.go.kr/temp/login.zihttp://www.ywa.go.kr/book/login_form.php하나 보고 나면 하나가 에러,,,,,정말 힘들군요
이번엔 로그인 에러가 나서 질문드립니다. php 고수 따라~ 이 책보고 하다가 머리 터지겠습니다.
아래 질문에서도 책에 있는 그대로 소스 쓴 부분이 에러나서 3일동안 고생시키더니
어제부터 로그인 하는데 에러가 오늘까지 고생시킵니다.
이책 다보고나서 항의글 보내야 할까 봐요
우선 이 에러문 좀 봐주세요.
링크 해 놓은 곳을 한번 봐주시고요, login 파일소스도 링크해 놓았습니다.

---로그인 하는 창 페이지입니다.---
아이디, 패스워드는 임시로 test, test로 해 놓았습니다.
디비는 관리자 기능만 할꺼니까 간단하게
---------------------
userid  ㅣ password
test      ㅣ test
--------------------- 이렇게 만들었습니다.

그리고 로그인 폼 소스는 다음과 같습니다.
login_form.php
<?
include_once("../book/session.php");
include_once("../book/dbcon.php");

if ($session_userid!="") {
        echo "
        <script>
        location.replace('../book/login_success.php');
        </script>
        ";
        die;
}
?>
<html>
<head>
<title></title>
<meta http-equiv=Content-Type content=text/html; charset=euc-kr>
<link href='../book/ywa.css' rel='stylesheet' type='text/css'>
</head>

<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>
<br>
<br>
<table width='500' border='0' align='center' cellpadding='5' cellspacing='0' bgcolor='#EBDBF2' style='border:0px #333333 solid;border-top-width:3px;'>
  <tr>
    <td><b>관리자 페이지</b></td>
    </tr>
</table>
<br>
<table width='500' border='0' align='center' cellpadding='0' cellspacing='0'>
  <tr>
    <td class=td1 align='center'>이곳은 관리자가 정보수정하는 곳입니다.</td>
  </tr>
</table>
<br>
<form action='../book/login_engine.php' method='post' name='login_form' id='login_form' style='margin:0px;' onSubmit='return checkForm(this.form);'>
  <table width='500' border='0' align='center' cellpadding='5' cellspacing='0'>
    <tr>
      <td width='195' align='right' bgcolor='#EFD8F1'>   <font color='#FF0000'>*</font>
         아이디</td>
      <td width='282' bgcolor='#E8E8E8'> <input name='userid' type='text' id='userid' size='20' style='border:1px #333333 solid;width:100px;height:20px;'>
      </td>
    </tr>
    <tr>
      <td align='right' bgcolor='#EFD8F1'>   <font color='#FF0000'>*</font>
         암호</td>
      <td bgcolor='#E8E8E8'> <input name='password' type='password' id='password' size='20' style='border:1px #333333 solid;width:100px;height:20px;'>
      </td>
    </tr>
  </table>
  <br>
  <table width='500' height='40' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#EBDBF2' style='border:0px #333333 solid;border-bottom-width:3px;'>
    <tr>
      <td align='center'>
<input type='submit' name='Submit' value='인증'>
        <input type='reset' name='Reset' value='취소'>
      </td>
    </tr>
  </table>
</form>
<script>
function checkForm(theForm) {
        if (theForm.userid.value=="") {
                alert("아이디를 입력하십시오.");
                theForm.userid.focus();
                return false;
        } else {
                return true;
        }
}
</script>
</body>
</html>

그리고 login_engine.php 소스입니다.
<?
include_once("../book/session.php");
include_once("../book/dbcon.php");

$sql = "select * from book_info where userid='$userid'";
$res = mysql_query($sql);
if ($res) $rs = mysql_fetch_array($res);

if ($rs[userid]==$userid && $userid!="") {//아이디 일치
        if ($rs[password]==md5($password)) {//암호 일치
                $session_userid = $rs[userid];//인증완료
                echo "
                <script>
                location.replace('../book/login_success.php');
                </script>
                ";
        } else {//암호오류
                echo "
                <script>
                alert('[인증실패] 암호가 올바르지 않습니다.');
                location.replace('../book/login_form.php');
                </script>
                ";
        }
} else {//아이디 오류
        echo "
                <script>
                alert('[인증실패] 아이디가 올바르지 않습니다.');
                location.replace('../book/login_form.php');
                </script>
                ";
}
?>
여기서 끝나면 로그인 성공화면 으로 넘어가고요.
어디가 잘못 됐나요
아래 답변해주신 것 같이 ", ' (콤마)가 잘못 돼서 그렇나 해서 html 소스에 있는 " 는 다 ' 로 다 바꿨고요
php소스는 어떤걸 바꿔야 할지 몰라서요
어디가 잘못 된것인지 다시 한번 더 부탁합니다.

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
abc920 레이아웃!!!!!!!!!!!!!!!!!!!!!!! [1] file 2011.12.05 by kantsoft
오뚝이 http 500 에 관한 질문입니다 [1] 2011.11.27 by 오뚝이
김만두 http 500 내부 서버 오류라고 뜨는데요.. [1] 2011.11.19 by 잠수
AR. xe1.5 제대로 작동이 안됩니다. [1] 2011.11.09 by 종스
very_sencere 최근게시물에 확장변수 나타내기 적용했는데 않되네요 틀린곳좀 알려 주세요 [1] 2011.11.03 by discount mbt shoes
차니나라 게시판에서 첨부파일 노출 삭제방법 [1] file 2011.10.29 by Cody
나는새 회원가입폼을 레이아웃 안에 넣고싶습니다  
나는새 회원가입폼을 레이아웃 안에 나타나게 하기  
낭도섬지기 송동우님 한번만 더 도와주세요~(__+) [3] 2011.09.22 by 낭도섬지기
엠™ div 세로 길이 컨텐츠 길이에 맞게 자동으로 되는거 질문이요. [1] 2011.09.20 by 송동우
소리없이 관리자페이지와 모듈페이지 문제 / 몇몇분들도 ...  
소리없이 업데이트 후 관리자 페이지와 모듈 페이지가 사라졌습니다. 제발 도와주세요 [1] 2011.09.10 by 송동우
형자 제로보드4 -> XE 이전 관련 [1] 2011.08.12 by 막샷달인
루달스튼 게시판이 갑자기 다운됩니다 (http 500 에러)  
후르방 게시판 내에 jquery slide 소스를 넣으려고 합니다!!  
루달스튼 xe 사이트 로드시에 500 에러 - error.log 첨부합니다.  
엔드라이프 첨부파일 128메가 오류 질문 HTTP 500 [2] 2011.06.08 by Happiness
육성규 게시판 레이아웃을 하다가... [1] 2011.06.07 by 송동우
육성규 게시판 레이아웃에서...  
배정호310 부탁드립니다 제발 답변좀해주세요 나모와 zb4관련 [1] 2011.05.23 by 쭈영