in reply to remote_user not identifing user

2 things :
1. The page posting to your cgi page might not be sending any environment variables (there r ways to control what environment variable is sent over to the receiving page) and
2. You might want to try accessing the %ENV hash too. for e.g.
$name = $ENV{"REMOTE_USER"}

try printing out all the values of the ENV hash to see whats being passed
hth... :)