검색 조건 문의드립니다. 채택완료

 

1890307108_1525082335.1992.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_6"<?php echo get_selected($sfl, 'wr_6', true); ?>>연락처</option>
            <option value="wr_7"<?php echo get_selected($sfl, 'wr_7', true); ?>>시리얼번호</option>
           <option value="wr_content"<?php echo get_selected($sfl, 'wr_content'); ?>>작업내용</option>
        </select>
        <label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
        <input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required id="stx" class="sch_input" size="25" maxlength="20" placeholder="시리얼번호를 입력해주세요">
        <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 포인트

1) <select name="sfl" id="sfl">~</select> 삭제하고,

 

2) <input type="hidden" name="sfl" value="wr_7"> 로 대체해주면 됩니다..

Copy
<label for="sfl" class="sound_only">검색대상</label>
        <input type="hidden" name="sfl" value="wr_7">
        <label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
        <input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required id="stx" class="sch_input" size="25" maxlength="20" placeholder="시리얼번호를 입력해주세요">
로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

감사합니다!!><

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

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

로그인
🐛 버그신고