Copy
<a class="tag_link" href="../bbs/search.php?sfl=wr_subject%7C%7Cwr_content&sop=and&stx=[wr_1값으로 검색하고 싶습니다]">#<?php echo $list[$i]['wr_1'] ?></a>
까만부분에 wr_1 의 값이 들어가서 검색되게 하고싶은데 어떤식으로 넣어야 할지 모르겠습니다....
도움주시면 감사하겠습니다
|
답변 3개 / 댓글 5개
채택된 답변
+20 포인트
wr_1에 값이
1번 게시물이 a
2, b
3 a
4 b
5 a
이럴 때
wr_1 값이 a인 게시물을 찾고 싶으신 건가요?
sfl 가 빠진거같은데요?
<a class="tag_link" href="../bbs/search.php?sfl=wr_subject%7C%7Cwr_content&sop=and&sfl=wr_1&stx=[stx검색값]">#<?php echo $list[$i]['wr_1'] ?></a>
답변에 대한 댓글 4개
[code]
<fieldset class="bo_sch">
<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_1"<?php echo get_selected($sfl, 'wr_1'); ?>>wr_1</option>
<option value="wr_subject"<?php echo get_selected($sfl, 'wr_subject'); ?>>제목</option>
</select>
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<div class="sch_bar">
<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"><img src="/img/ico_search.png"><span class="sound_only">검색</span></button>
</div>
</form>
</fieldset>
[/code]
<fieldset class="bo_sch">
<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_1"<?php echo get_selected($sfl, 'wr_1'); ?>>wr_1</option>
<option value="wr_subject"<?php echo get_selected($sfl, 'wr_subject'); ?>>제목</option>
</select>
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<div class="sch_bar">
<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"><img src="/img/ico_search.png"><span class="sound_only">검색</span></button>
</div>
</form>
</fieldset>
[/code]
답변을 작성하려면 로그인이 필요합니다.