Answer the question
In order to leave comments, you need to log in
Passing getResources parameters by GET method?
Good day.
There is a map with labels, you need to click on the city to display materials where this city is recorded in TV.
On the output page I want to call something like this:
How can I pass the tvFilter value to the page where the above GET call will be? To get a link like localhost/index.php?id=1&tvFilter= `city==Minsk`
Answer the question
In order to leave comments, you need to log in
Let's create a simple snippet:
<?php
//пример вызова сниппета: и
$get = preg_replace('#[^a-zA-Z0-9_=]#', '', $_GET[$var]);
$output = (empty($get) && isset($def)) ? $def : $get;
return $output;
&tvFilters=``
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question