I think I'm hearing you. You can stick variables in $_SESSION and carry 'em around wherever you want to. You can create another form, set HIDDEN input fields, and the info will be POSTed to a handling script when the form is submitted.
However, I'm not familiar enough with Apache Basic Auth to know how you're going to carry that across Auth realms.
Does the Mac server have PHP also? Couldn't you just (beware, I'm known for awful kludges) do something like:
//index.php
session_start();
if (!$_SESSION['authorized']) {
// auth stuff
} else {
"include 'index.html';
}
Of course, I guess that would defeat the AutoIndex page....
I assume you've tried using the same UN/PW combination across the realm, and it fails?
Sorry I'm not much help today...