Get current query parameters and set them to a link (browser.goto or href)

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:

  1. https://mysite.com/adm_orders.php?stats=1&sent=0&dltd=1
  2. 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.

Sorry If I'm misunderstanding it, but what about this?

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

Thanks Ken!!

Let me look at it

Right in front of my eyes… Before start messing with coding I just asked and here it is!

Thanks a lot Ken!!!