http://localhost:8080/myfolder/hostname.php
To send url of page hidden to collect in next page use this code below: –
localhost:8080/myfolder/hostname.php
Remember to collect on the other side
http://localhost:8080
$url="http://".$_SERVER['HTTP_HOST'];
and for just the actual pagename
index2.php$justpagename = basename($_SERVER['SCRIPT_NAME']);
and for the previous pages page name only
clickme.phpecho $url=basename($_SERVER['HTTP_REFERER']);











