Dear friends,
I am using this construction on my page and now I cannot make it work with the new snippet update. It seems that various snippets do not transfer variables. Can you, please, help me?
[insert_php]
$pozrok = date(Y);
$pozmesic = date(m);
if ($_GET['rok']){$pozrok=$_GET['rok'];}
if ($_GET['mesic']){$pozmesic=$_GET['mesic'];}
[/insert_php]
<center>
<strong>Docházka za měsíc [insert_php] echo $pozmesic; echo "/"; echo $pozrok; [/insert_php]</strong>
This code constructs the required link with parameters, calls another application and display that in the page. If I create the snipets and replace the [insert_php] with the [wbcr_php_snippet id="xxx"] or [wbcr_snippet id="xxx"] with the php code, the variables do not show in the link.
I am using this construction on my page and now I cannot make it work with the new snippet update. It seems that various snippets do not transfer variables. Can you, please, help me?
[insert_php]
$pozrok = date(Y);
$pozmesic = date(m);
if ($_GET['rok']){$pozrok=$_GET['rok'];}
if ($_GET['mesic']){$pozmesic=$_GET['mesic'];}
[/insert_php]
<center>
<strong>Docházka za měsíc [insert_php] echo $pozmesic; echo "/"; echo $pozrok; [/insert_php]</strong>
This code constructs the required link with parameters, calls another application and display that in the page. If I create the snipets and replace the [insert_php] with the [wbcr_php_snippet id="xxx"] or [wbcr_snippet id="xxx"] with the php code, the variables do not show in the link.
Last edited: