채택완료

모바일 검색 부분질문좀드리겠습니다?

2018-10-01 (월) 18:24:33 2,830

안녕하세요 질문좀 드리겠습니다

게시판 검색을 사용중인데요 아래와 같이 소스를 이용중입니다

그런데 아래 사진과같이 여분필드가 저장되어있는부분이 저렇게 나오는데 

왜그럴까요 ㅠ?

2084177291_1538385818.723.png

2084177291_1538385870.2098.png

Copy
<fieldset id="bo_sch">
    <legend>게시물 검색</legend>

    <form name="fsearch" method="get">
    <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
    <input type="hidden" name="sca" value="<?php echo $sca ?>">
    <input type="hidden" name="sop" value="and">
    <label for="sfl" class="sound_only">검색대상</label>
   <!-- <select name="sfl" id="sfl">
        <option value="wr_subject"<?php echo get_selected($sfl, 'wr_subject', true); ?>>제목</option>
        <option value="wr_content"<?php echo get_selected($sfl, 'wr_content'); ?>>내용</option>
        <option value="wr_subject||wr_content"<?php echo get_selected($sfl, 'wr_subject||wr_content'); ?>>제목+내용</option>
        <option value="mb_id,1"<?php echo get_selected($sfl, 'mb_id,1'); ?>>회원아이디</option>
        <option value="mb_id,0"<?php echo get_selected($sfl, 'mb_id,0'); ?>>회원아이디(코)</option>
        <option value="wr_name,1"<?php echo get_selected($sfl, 'wr_name,1'); ?>>글쓴이</option>
        <option value="wr_name,0"<?php echo get_selected($sfl, 'wr_name,0'); ?>>글쓴이(코)</option>
    </select>-->
    <input name="stx" value="<?php echo stripslashes($stx) ?>" placeholder="제품명을 입력해주세요." required id="stx" class="sch_input" size="15" maxlength="20">
    <button type="submit" value="검색" class="sch_btn"><i class="fa fa-search" aria-hidden="true"></i> <span class="sound_only">검색</span></button>
    </form>
</fieldset>
|

답변 1개

채택된 답변
+20 포인트
2018-10-01 (월) 19:04:58

input type 을 hedden으로 변경해주세요

그리고 form 사이에 input을 넣어야되요 안그러면 서브밋해도 작동이 안되요

답변을 작성하려면 로그인이 필요합니다.