I didn't spot that you were using underscores, but that certainly won't work. The server variables have hyphens,, those are the names and they are documented that way. Hyphens are not valid in environment variables, underscores are part of the CGI standard to convert them, much as the HTTP_ prefix added to headers is. -- Scott