검색바 적용 문의드립니다.
본문
안녕하세요
2번이 지금 사용중인 검색바 스킨입니다...
1번은 검색바 소스 그대로 넣고 해보니 검색작동이 안되더군요....
1번 스킨으로 변경할려고합니다... 조언 부탁드립니다
1번  변경할 검색바 스킨
 <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<form action="./" method="get">
    <div class="searchbar">
        <input type="text" class="searchbar__input" name="q" placeholder="Search Videos">
        <button type="submit" class="searchbar__button">
            <i class="material-icons">search</i>
        </button>
    </div>
</form>
 
------------------------------------------------------------------------------------------------------------
 
2번 기존 검색바
             <form name="fsearchbox" method="get" action="<?php echo G5_BBS_URL ?>/search.php" onsubmit="return fsearchbox_submit(this);">
                <input type="hidden" name="sfl" value="wr_subject||wr_content">
                <input type="hidden" name="sop" value="and">
                <label for="sch_stx" class="sound_only">검색어 필수</label>
                <input type="text" name="stx" id="sch_stx" maxlength="20" placeholder="검색어를 입력해주세요">
                <button type="submit" id="sch_submit" value="검색"><i class="fa fa-search" aria-hidden="true"></i><span class="sound_only">검색</span></button>
                </form> 
                <!-- 여기까지 -->
 
답변 1
다음을 참고하셔서 원하시는 형태로 수정하시면 되지 않을까 합니다.
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<form action="<?php echo G5_BBS_URL ?>/search.php" method="get">
    <input type="hidden" name="sfl" value="wr_subject||wr_content">
    <input type="hidden" name="sop" value="and">
    <div class="searchbar">
        <input type="text" class="searchbar__input" name="stx" id="sch_stx" maxlength="20" placeholder="검색어를 입력해주세요">
        <button type="submit" class="searchbar__button">
            <i class="material-icons">search</i>
        </button>
    </div>
</form>
                답변을 작성하시기 전에 로그인 해주세요.