소스좀 봐주세요

· 18년 전 · 1528 · 1
아래 소스를보시면 리스트 박스로 선택후 검색하는것인데.. 리스트 박스를 없애고 기본값이 통합검색으로 하고싶습니다. 소스를 수정하면 될것같은데 .. 답변부탁드립니다,.


<form action='./search.php' method=get style='display:inline;'>
<input type=hidden name=q value='search'>
<select name='stype' style='width:80px;height:15px;'>
<option value='all'<?if($stype=='all'):?> selected<?endif?>>통합검색</option>
<option value='shop'<?if($stype=='shop'):?> selected<?endif?>>쇼핑몰</option>
<option value='board'<?if($stype=='board'):?> selected<?endif?>>게시판</option>
<option value='comment'<?if($stype=='comment'):?> selected<?endif?>>코멘트</option>
<option value='doc'<?if($stype=='doc'):?> selected<?endif?>>페이지</option>
<option value='upload'<?if($stype=='upload'):?> selected<?endif?>>첨부파일</option>
<option value='image'<?if($stype=='image'):?> selected<?endif?>>이미지</option>
</select>
<input type=text name='keyword' value="<?=trim(stripslashes(htmlspecialchars($keyword)))?>" style="width:150;height:15;border:#C4C4C4 solid 0px;">
<input name="image" type=image src='<?=$img[head]?>/icon_go.gif' align=absmiddle>
</form>
|

댓글 1개

<form action='./search.php' method=get style='display:inline;'>
<input type=hidden name=q value='search'>
<input type=hidden name=stype value='all'>
<input type=text name='keyword' value="<?=trim(stripslashes(htmlspecialchars($keyword)))?>" style="width:150;height:15;border:#C4C4C4 solid 0px;">
<input name="image" type=image src='<?=$img[head]?>/icon_go.gif' align=absmiddle>
</form>
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
18년 전 조회 1,845
18년 전 조회 2,606
18년 전 조회 1,623
18년 전 조회 1,962
18년 전 조회 1,985
18년 전 조회 1,828
18년 전 조회 1,939
18년 전 조회 1,642
18년 전 조회 1,543
18년 전 조회 1,529
18년 전 조회 1,653
18년 전 조회 1,575
18년 전 조회 1,565
18년 전 조회 1,630
18년 전 조회 1,663
18년 전 조회 1,894
18년 전 조회 1,570
18년 전 조회 1,553
18년 전 조회 1,601
18년 전 조회 1,705
🐛 버그신고