바쁘신데 질문좀 드릴께요...ㅜ.ㅜ
본문
상품 분류하나 만들었는데요...
http://sir.co.kr/shop/list.php?ca_id=10
이페이지안에 셀렉트박스로 검색을 만들고 싶은데요...
shop/list.php안에 이렇게 넣었어요...
<fieldset id="bo_sch">
<legend>게시물 검색</legend>
<form name="fsearch" method="get">
<input type="hidden" name="page" value="<?php echo $page; ?>">
<input type="hidden" name="save_stx" value="<?php echo $stx; ?>>">
<input type="hidden" name="sop" value="and">
<label for="sfl" class="sound_only">검색대상</label>
<select class=box name="it_maker" itemname='테마'>
<option value="0">테마전체</option>
<option value="1" <?if($it_maker=="1"){?>selected<? }?>>1</option>
<option value="2" <?if($it_maker=="2"){?>selected<? }?>>2</option>
</select>
<input type="submit" value="검색" class="btn_submit">
</form>
</fieldset>
shop_admin/itemform.php 수정해서 it_maker를 변형했는데요...
검색을 하면 없는 분류라고 나오는데...
어떻게 해야할까요?? 좀도와주세요
답변 1
<fieldset id="bo_sch">
<legend>게시물 검색</legend>
<form name="fsearch" method="get">
<input type="hidden" name="page" value="<?php echo $page; ?>">
<input type="hidden" name="save_stx" value="<?php echo $stx; ?>">
<input type="hidden" name="ca_id" value="<?php $ca_id; ?>">
<input type="hidden" name="sop" value="and">
<label for="sfl" class="sound_only">검색대상</label>
<select class=box name="it_maker" itemname='테마'>
<option value="0">테마전체</option>
<option value="1" <?if($it_maker=="1"){?>selected<? }?>>1</option>
<option value="2" <?if($it_maker=="2"){?>selected<? }?>>2</option>
</select>
<input type="submit" value="검색" class="btn_submit">
</form>
</fieldset>