M
M
maksplotnikoff2016-02-24 09:43:00
PHP
maksplotnikoff, 2016-02-24 09:43:00

A button that saves the result on the page?

Guys, there is a page that has a filtered gallery. When we select any image, we go to a page that has a back button. It is necessary that when we click on this button we go back, and at the same time, if this or that filter has been selected, it must be saved. I am not strong in PHP, please show me how to do this?
Filtered gallery code:

<div class="filters">
            	<ul class="filter-tabs clearfix anim-3-all">
                    <li class="filter" data-role="button" data-filter="all">Все</li>
                    <li class="filter" data-role="button" data-filter=".apartment">Квартиры</li>
                    <li class="filter" data-role="button" data-filter=".room">Комнаты</li>
                    <li class="filter" data-role="button" data-filter=".commercial_property">Коммерческая недвижимость</li>
                    <li class="filter" data-role="button" data-filter=".plots_of_land">Земельные участки</li>
                    <li class="filter" data-role="button" data-filter=".home">Дома/дачные участки</li>
                </ul>
            </div>
            
        </div>
        
        <div class="images-container">
            <div class="filter-list clearfix">
<div class="image-box mix mix_all apartment">
    <div class="inner-box">
        <figure class="image"><a href="search.html" class="lightbox-image"><img src="assets/templates/images/gallery/1.jpg" alt=""></a></figure>
        <a href="search.html" class="zoom-btn lightbox-image"><span>Аренда 1-комнатной квартиры, Бурнаковский проспект</span></a>
    </div>
</div>
<div class="image-box mix mix_all commercial_property">
    <div class="inner-box">
        <figure class="image"><a href="savecomment.html" class="lightbox-image"><img src="assets/templates/images/gallery/3.jpg" alt=""></a></figure>
        <a href="savecomment.html" class="zoom-btn lightbox-image"><span>Продажа помещения на ул. Тонкинская, д. 1</span></a>
    </div>
</div>
            </div>
        </div>

Button code:
<div class=" col-md-6 form-group1 text-center">
        <button type="submit" name="submit" class="theme-btn btn-style-one1">Похожие предложения</button>
        </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Silm, 2016-02-24
@Silm

A button that saves filtering?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question