검색 결과 화면에 'true' 만 보입니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

검색 결과 화면에 'true' 만 보입니다. 정보

검색 결과 화면에 'true' 만 보입니다.

본문

<!--원하는 위치에 테이블을 만들고 아래의 코드들을 복사하여 삽입하세요..뜨락의이름-->
                        <!--첨부된 se_bt.gif 이미지는 반드시 G4 루트의 img폴더에 넣어 주세요..뜨락의이름 -->
<table cellpadding="0" cellspacing="0" width="250" height="35px" background="<?=$g4[path]?>/img/bg_search.gif">
                            <tr>
                                <td width="250" align="left" height="35px" valign="middle">
                                    <table cellspacing="0" cellpadding="0" width="250">
                                        <form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
                                        <input type="hidden" name="sfl" value="wr_subject">
                                        <input type="hidden" name="sop" value="and">
                                        <tr>
                                            <td width="220" valign="top" align="right"><INPUT name="stx" maxlengt=20 style="font-weight:bold; font-family:나눔고딕, gulim; font-size:16px; background-color:#e7e7e7; border-style:none; width:210px; height:25px; tabIndex=1 maxlength=" 20" size="23" maxlength="20">
                                            </td>
                                            <td width="30">
                                                <table cellpadding="0" cellspacing="0" width="30">
                                                    <tr>
                                                        <td width="30" height="25">
<input type="image" src="<?=$g4[path]?>/img/se_bt2.gif" width="25" height="25" border="0"></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        </form>
                                    </table>
                                    <script language="JavaScript">
function fsearchbox_submit(f)
{
    if (f.stx.value == '')
    {
        alert("검색어를 입력하세요.");
        f.stx.select();
        f.stx.focus();
        return;
    }
/*
    // 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
    var cnt = 0;
    for (var i=0; i<f.stx.value.length; i++)
    {
        if (f.stx.value.charAt(i) == ' ')
            cnt++;
    }

    if (cnt > 1)
    {
        alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
        f.stx.select();
        f.stx.focus();
        return;
    }
*/
    f.action = "<?=$g4[bbs_path]?>/search.php";
    f.submit();
}
                                   
                                    </script>

                               
                        </table>


이러다 궁디 땀띠 나겠어요. 누가 좀 봐주시와요. ;
화면에 true 글자 외에는 아무것도 안뜹니다.
  • 복사

댓글 전체

간신히 해결했습니다.

<? include ("$g4[path]/include/search.php"); ?> -><? include_once("$g4[path]/include/search.php"); ?>

로 바꿔주니 이상없이 사용됩니다.
읽어주신분들께 감사드립니다. ^^
© SIRSOFT
현재 페이지 제일 처음으로