Yes, iceiceboom was correct. Since the location is not sent, you will have to use a javascript function to get the location. This is a function I wrote for a playlist script:
function getDrive(which) {
document.sendplaylist.filepath.value = which.value;
}
And here was my form:
<form name="sendplaylist" enctype="multipart/form-data" action="<? echo($PHP_SELF); ?>" method="post">
Playlist: <input name="userfile" type="file"onChange="getDrive(this);"><br>
<input type="hidden" name="filepath">
<input type="submit" name="submit" value="Send Playlist">
</form>
Hope this helps.