將'標籤'放在查詢字符串中並在下一頁中查找它們。
<input id="cb1" type="checkbox" name="category" value="Drama" /><label for="cb1">Drama</label><br />
<input id="cb2" type="checkbox" name="category" value="Horror"/><label for="cb2">Horror</label><br />
<input id="cb3" type="checkbox" name="category" value="Comedy"/><label for="cb3">Comedy</label><br />
<input id="cb4" type="checkbox" name="category" value="Action"/><label for="cb4">Action</label><br />
<script type="text/javascript">
search = function() {
var categories = new Array();
$.each($("input[name='category']:checked"), function() {
categories.push($(this).val());
});
window.location.href = "./search?category=" + categories;
}
</script>