검색 조건 문의드립니다.
본문
검색조건을 시리얼 번호 하나로 해서 셀렉트 박스를 없애고 이미지처럼 만들고싶습니다
도와주세요 ㅠ_ㅠ
<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
1) <select name="sfl" id="sfl">~</select> 삭제하고,
2) <input type="hidden" name="sfl" value="wr_7"> 로 대체해주면 됩니다..
<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="시리얼번호를 입력해주세요">
답변을 작성하시기 전에 로그인 해주세요.