php判断输出
想判断一下本网页上面选中的值传给下面来判断输出数据库中的值
我想输出
<?php
include('./conn/conn.php');
include('./common/header.php');
$sou=urldecode(trim($_GET['sou']));
$pagenum=2;
$page = intval($_GET['page']);
if(!empty($page)) {
$start_limit = ($page - 1) * $pagenum;
} else {
$start_limit = 0;
$page = 1;
}
$sqllts="select count(*) as total from coupon c,dealer d where c.dealerid=d.sid";
$quelts=mysql_query($sqllts);
$tatol=mysql_result($quelts,0,"total");
$page_page = page_search($tatol, $pagenum, $page, "",$sou);
?>
<script type="text/javascript">
<!--
(function(){
var ser='#searcher';
$(ser+' div').click(function(){$(ser+' ul').toggle();});
$(ser+' li').hover(function(){$(this).addClass('d');},function(){$(this).removeClass('d');});
$(ser+' li').click(function(){$(ser+' div').html($(this).html()).attr('va',$(this).attr('va')); $(ser+' ul').hide();});
$('#keyword').focus(function(){if($(this).val()=='搜索商户名,地址等...'){$(this).val('');}});
$('#keyword').blur(function(){if($(this).val()==''){$(this).val('搜索商户名,地址等...');}});
})();
//-->
</script>
<!--头部结束-->
<div class="box mtop10">
<!--左边开始-->
<div id="yhql">
<!--按商区开始-->
<div class="asq">
<div class="asqdl">
<div class="asqz">按类别:</div>
<div class="asqy"><a href="yhq11.php" class="now">无限制</a>
<?php
$sqlp="select * from category";
$quep=mysql_query($sqlp);
$selectcate="";
$selectregionid=$_REQUEST['rid'];
while($myrow=mysql_fetch_array($quep)){
?>
<a href="yhq111.php?cateid=<?php echo $myrow['cid'];?>&rid=<?php echo $selectregionid;?>" <?php if($_REQUEST['cateid']==$myrow['cid']) { echo 'class="now"';$selectcate=$myrow['catename'];}?>><?php echo $myrow['catename'];?></a>
<?php
}
?>
</div>
</div>
<div class="asqdl">
<div class="asqz">按商区:</div>
<div class="asqy">
<?php
$sqlp="select * from region";
$quep=mysql_query($sqlp);
$selectcate1="";
$selectcatenid=$_REQUEST['cateid'];
while($myrow=mysql_fetch_array($quep)){
?>
<a href="yhq111.php?cateid=<?php echo $selectcatenid;?>&rid=<?php echo $myrow['rid'];?>" <?php if($_REQUEST['rid']==$myrow['rid']) { echo 'class="now"';$selectcate1=$myrow['rname'];}?>><?php echo $myrow['rname'];?></a>
<?php
}
?></div>
</div>
</div>
<!--按商区结束-->
<!--就餐条件开始-->
<div class="jctj mtop10"><ul>
<li><!--您还没有选择任何条件-->您已选择:</li>
<li><a href="#" class="ajc"><b><?php echo $selectcate;?></b></a><a href="#" class="ajc"><b><?php echo $selectcate1;?></b></a></li>