S
S
Stalker_darkway2016-10-26 05:53:15
PHP
Stalker_darkway, 2016-10-26 05:53:15

How to combine 2 get requests?

Hello.
Site on bitrix.
There are two menus: grouping and sorting, you can select one first, then the other.
In the link menu, like:
?sorter=name (by name) ?
groupper=brand (by manufacturer
)
name&groupper=brand.
Thanks in advance for your reply.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zemlyanoy, 2016-10-26
@hronik87

Add your parameters to the array, combine with the common GET and form the address.

<a href="/?<?=http_build_query(array_merge($_GET, array("sorter" => "name")));?>">
    Сортировка по наименованию
</a>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question