in reply to redirect and cookie problems

I used your sugestions and changed the code. It still does not work now the prgram out puts

HTTP/1.1 302 Moved Server: Apache/1.3.19 (Unix) Status: 302 Moved Date: Thu, 14 Jun 2001 02:23:04 GMT location: http://storm.prohosting.com/fightior/cgi-bin/warrior.pl

#!/usr/local/bin/perl use CGI ':standard'; my $query = CGI->new(); my $cookie = $query->cookie(-name=>'username', -values=>"param('name')", -expires=>'+1h', -domain=>'.storm.prohosting'); print $query->header(-cookie=>$cookie); print start_html(); $name=param('name'); open FILE, "user/$name" or die "Error: $!\n"; my %data = (); while ( my $line = <FILE> ) { chomp $line; my ($key, $value) = split(/\s*:\s*/, $line); $data{$key} = $value; } close FILE; #this section checks if the password is correct and lets you into the +game or tells #you that the password was incorect if (param('password') eq $data{password}) {# if the password is correc +t you enter the game print $query->redirect(-uri=>'http://storm.prohosting.com/fightior/cgi +-bin/warrior.pl', -nph=>1); } if (param('password') ne $data{password}) {#this part tells you if th +e password was not open (NOPASS, "../password.htm"); for $line (<NOPASS>) { print $line; } } close NEWFILE ; close NOPASS; end_html();