-3
The initial part to get the URL I already made using this code:
//URL ATUAL
$url_atual = str_replace("/", "", $_SERVER[REQUEST_URI]);
echo $url_atual;
..... If I’m at the url http://localhost/index.php me returns: index.php
if I’m at the url http://localhost/index.php? module=guide return me: index.php? module=tab
But I need to know how to know if after index.php you’re using some "?" like this example: index.php? module=guide.....
because I need to create a link
if it’s only index.php adds: lang=1">
index.php? lang=1 result
or
if it is index.php? module=guide &lang=1">
index.php? module=gui&lang=1 result
I used your second example, it worked, as well as adding what I wanted to an existing link.. it does not repeat before when I selected a language from Portuguese to English with the existing link EX: index.php? module=registro&lang=pt he repeated: index.php? module=registro&lang=pt&lang=en now with this manipulation, there is no more this problem, Thanks!!
– Iury Martins
https://www.gbrwc.com <---- ja esta funcionando neste site =)
– Iury Martins