In order to use PHP to get the full current URL you can use the following code snippet:
<?php $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; echo $url; ?>
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:
You can get the value of “day” and “month” parameters as below:
<!?php echo $_GET["day"]; ?> <!?php echo $_GET["month"]; ?>
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.