Get Full Current URL from Address Bar using PHP
In order to use PHP to get the full current URL you can use the following code snippet:
Get Full Current URL from Address Bar using JavaScript
If you need to get the full URL of the current webpage on client-side in some JavaScript function, you can use the location.href to perform this:
Get URL String Parameter with PHP
If you want value of a particular parameter passed along with the URL string –you can use the $_GET array of PHP for this purpose. For example, if the page URL is like: day=wednesday&month=8 You can get the value of “day” and “month” parameters as below: I hope this was useful for you. Please feel free to let me know if you have any questions on this topic. I will be happy to try and help you. Thank you for using TechWelkin.