lindm Posted December 7, 2007 Share Posted December 7, 2007 Got a form (form.html) in a subdirectory which is posted to a php file elsewhere on my server. I need to get the name of the folder containing form.html as a variable in to use in my php file...how? $_SERVER['HTTP_REFERER'] is the absolute url...perhas manipulate the string? Link to comment https://forums.phpfreaks.com/topic/80702-solved-get-containing-folder-name-of-referrer/ Share on other sites More sharing options...
Distant_storm Posted December 7, 2007 Share Posted December 7, 2007 yes just parse the url note though that not all users will allow referer to be passed and it may return blank, you should acommodate for this too. Link to comment https://forums.phpfreaks.com/topic/80702-solved-get-containing-folder-name-of-referrer/#findComment-409326 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.