<select name="sfl" id="sfl">
<option value="wr_subject"<?php echo get_selected($sfl, 'wr_subject', true); ?>>제목</option>
<option value="wr_content"<?php echo get_selected($sfl, 'wr_content'); ?>>내용</option>
<option value="wr_subject||wr_content"<?php echo get_selected($sfl, 'wr_subject||wr_content'); ?>>제목+내용</option>
<option value="mb_id,1"<?php echo get_selected($sfl, 'mb_id,1'); ?>>회원아이디</option>
<option value="mb_id,0"<?php echo get_selected($sfl, 'mb_id,0'); ?>>회원아이디(코)</option>
<option value="wr_name,1"<?php echo get_selected($sfl, 'wr_name,1'); ?>>글쓴이</option>
<option value="wr_name,0"<?php echo get_selected($sfl, 'wr_name,0'); ?>>글쓴이(코)</option>
</select>
list.skin에 있는 검색부분쪽 폼입니다. 궁금한게 생겨서 그런데 option의 value쪽에 뒤의 1이나 0이
무엇을 뜻하는지 알고싶어서 글을 올립니다.
답변 1개 / 댓글 4개
1, 회원아이디 (원글아이디)
0, 회원아이디 (코멘트 댓글단사람 아이디)
코는 코멘트 댓글이란 뜻입니다.
답변에 대한 댓글 4개
{
return ($field==$value) ? ' selected="selected"' : '';
}
select tag 에 옵션선택을 해주는겁니다.
답변을 작성하려면 로그인이 필요합니다.