Hey guys,
php, Wappler v6.0.0 8 stable
I have cases that I need to get the current query parameters from a page and set them to another page in order to get the same data on the new page…
The page contains data coming from a database query and the query parameters define the query results (and of course the page’s content).
I have about 10 query parameters that in the page may be set from 3 up to all the query parameters.
for example:
https://mysite.com/adm_orders.php?stats=1&sent=0&dltd=1
https://mysite.com/adm_orders.php?stats=3&sent=0&dltd=1&prcfrm=315&prcto=3218&fltr=casa&datefrm=2023-10-01&delivfrm=2023-10-19
Both pages (current and new page) have the same query parameters list)
Is there a way (wappler UI) to get the current query parameters in order to open another page with the same query parameters?
Any idea will be much appreciated.
franse
October 6, 2023, 1:49pm
2
Sorry If I'm misunderstanding it, but what about this?
I need to create a link from one site to another passing a URL Parameter.
I tried:
<a href="https://www.mywebproject.ca/clientsurvey/{{client_random}}">
{{client_random}} is populated from a recordset on the initial project.
I also tried dynamic Attribute --> Link but that didn’t work either for external links. Basically I just need to know how to pass a value to a route on a different site.
Thanks for replying Francisco,
I’m afraid this solution is for a single parameter…
I’m talking for unknown number of parameters and of course no clue of which parameter is defined.
*I suppose using javascript/php I can do it… But I’m asking maybe there is a “Wappler UI” way of doing it
The query parameters are available via the browser component.
browser1.location.search
1 Like
Right in front of my eyes… Before start messing with coding I just asked and here it is!
Thanks a lot Ken!!!