i was wondering if you could help me out, i'm working on a project where the user can login from any part of the site and a function is called when the button is clicked.
The problem is if the user for example is on this url
and the user wants to login the url would become
That works fine but when i did $_SERVER i get the full url, how can i remove the &action=login after the user has logged in!
Thanks for looking.