묻고답하기

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 남기남
컴박살 [한번더]sketchbook5_youtube 쓰고 있고 모바일에서 섬네일이 나오지 않아요 file  
minimoog Contact Us를 위젯방식으로  
cnc미라클 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ제발좀 [2] 2014.03.28 by cnc미라클
본체 xe알림센터 작동이 안됩니다.  
홍길동친구 출석부 잘못된 요청 ㅠㅠ [1] file 2014.03.28 by BJ람보
cnc미라클 설치화면 뜨질 않네요 [1] 2014.03.28 by cnc미라클
여우녀 현재 접속자 표시 위젯에서  
꿈꾸는돌 xe 게시물을 facebook에 공유하려는데 403 오류가 뜹니다. [2] 2014.03.28 by 꿈꾸는돌
이찌부 플래시 동영상 위에 버튼 다는 방법 없을까요? 동영상 제어  
designslam sketchbook5 제목 폼 미리 써놓는 방법아시는분? [1] 2014.03.28 by Luatic™
moonsoo 스케치북5 모바일 게시판 기본폰트를 크게하고 싶어요  
greengables 익명게시판 댓글에서 닉네임 옆에 순서대로 숫자가 뜨게 하고 싶습니다. [1] 2014.03.28 by Ikoo
알요제32 모바일에 최적화된 화면보기 이 문구 크기를 크게 할수없을까요?  
빛소리 기막힌 도배글들을 막는 기막힌 방법 좀 알려주세요 file  
용초딩 게시판 목록 수에서 공지글은 카운터 빼기  
마래바 글 주소를 인식하지 못하고, 조회수도 증가하지 않아요 [2] 2014.03.28 by 마래바
메롱롱 한쪽 서버에서 다른쪽으로 포워딩하는 문제! [1] 2014.03.28 by 메롱롱
月芽 에디터에 가려서 안보일 경우에 어떻게 해결하나요? file  
로스트(ROST) 이런게시판은 직접개발해야하나요? [2] 2014.03.28 by 로스트(ROST)
동동22 게시판 자동저장 기능 문의