Hi, im trying to get ie to throw up a www-authenticate box for username / password input. im running windows 2000 advanced server and php 4.0 the code im using (trying to anyway) <?php if (!isset($PHP_AUTH_USER)) Header("WWW-Authenticate: Basic realm=\"Admin\""); Header("HTTP/1.0 401 Unauthorized"); $REMOTE_USER = ""; $REMOTE_PASSWORD = ""; $PHP_AUTH_USER = ""; $PHP_AUTH_PW = ""; print "You hit cancel! if it was an accident please <a href=\"$PHP_SELF\">click here</a> to try again."; exit; } else if ((!$PHP_AUTH_USER == "user") && ($PHP_AUTH_PW == "pass")) print "You are unauthorized"; } ?> it doesn't throw up the password box and just assumes that the two variables are not set (which they wont be because the box never showed anyway) Please help sched some light onto this subject Cheers -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]