D
D
Dmitry2020-08-11 09:37:08
PHP
Dmitry, 2020-08-11 09:37:08

How to get an arbitrary parameter from VK Mini Apps in php?

Judging by the documentation of VK Mini Apps, when starting the application, you can pass an arbitrary parameter by adding the necessary information to the link after the # symbol. In the page code, when embedding a frame, this parameter is substituted something like this ...&vk_viewer_group_role=admin&sign=AQfaiXHLv # param=1
...&vk_viewer_group_role=admin&sign=AQfaiXHLv Tell me

, is it possible to get this parameter, if so, how?

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Nedzvetsky, 2020-08-18
@Nezd

It's so easy not to get this parameter, only if you send it to the server from js. Because this is how the internet works
in js, it can be obtained as
window.location.hash //#param=1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question