Erik,
    Try not printing 
print "Content-type: text/html\n\n";
    then print 
print "Location: /path/prog1.cgi\n\n";

regards,
David

----- Original Message ----- 
From: "Erik Riggenbach" <[EMAIL PROTECTED]>
To: "Beginners-Cgi" <[EMAIL PROTECTED]>
Sent: Saturday, June 22, 2002 6:59 PM
Subject: Question about redirect


I have a really simple question I hope.  The redirect doesn't work.  It
doesn't work if I print it or not.  Why is it not working? Any help will be
much appreciated.
Thank you,
Erik

#!/usr/bin/perl -w
print "Content-type: text/html\n\n";

use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);

my $selection = param('mp3list');

open(OUT, ">>/var/www/html/Playlist");
print OUT "\n" . $selection;
close(OUT);
print redirect("prog1.cgi"); exit;



---
Everyday we're told we live in the greatest country on earth and it's always
stated as an un deniable fact: Leos are born between July 23 and August 22,
fitted queen-size sheets measure 60x80 inches, and America is the greatest
country on earth. Having grown up with this in our ears, it's startling to
realize that other countries have nationalistic slogans too, none of which
are 'We're number two!
- Dave Sedaris, "Me Talk Pretty One Day "



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to