views:

31

answers:

1

hi ,

i am having a form -search below that on search i am listing the matched records below the search form .. But even by default case without any search when i load the search form i am getting all the entries by default..

which is coming in a UL.. So i am trying to hide a div when the particular url is loaded .. How to do so??

A: 

I think you will have to check whether there is some data in the POST (search has been commited) or not. If it has, show the ul or hide otherwise, here is the prototype in php:

<?php if (isset($_POST))
{?>
   <ul>
       <li>....</li>
       <li>....</li>
       <li>....</li>
       // etc
   </ul>
<?php } ?>
Sarfraz