forms - PHP - Get path minus root -
so have link:
http://kenthomes.net/amelia-cove (we use alias system.)
then open pop-up iframe (http://kenthomes.net/shareplan.php?mod=39)
how can pass string "amelia-cove" page?
my best guess make link = http://kenthomes.net/shareplan.php?mod=39&plan=amelia-cove
but how retrieve "amelia-cove" initial page?
try this:
$_server['request_uri']
in above example, have value of: /amelia-cove. if want rid of /, try this:
trim($_server['request_uri'],'/');
Comments
Post a Comment