New answers tagged dropdown
Like Ash was saying, something like this using $_REQUEST or $_POST will do it. <?php $args['exclude'] = "12,20"; // omit these two categories $categories = get_categories($args); ?> <select class="selectpicker btn-block" name="coupon_cat" id="category"> <option value="">Категори Сонгох</option> <!-- if nothing else is ...
You can check with $_REQUEST['coupon_cat'], Which gives value of selected category then compare it with your loop value so, you can make it selected. $_REQUEST['coupon_cat'] will help you.
Top 50 recent answers are included