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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.