Skip to content
Advertisement

How to get and change URL variable PHP

Hi could anyone help me with this I have a URL like

JavaScript

then I have a link that would add variable to that URL

JavaScript

every time I click my link the variable d to URL keep on reproducing like this

JavaScript

I know that the $_SERVER[“REQUEST_URI”] keep getting the current URL that is why I get that result. I have tried the some of properties of $_SERVER[“”]. What I like is to change the d variable value, any idea how to do it. Any response is well appreciated.Thanks!

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement