Re: help with redirect in CGI.pm

2002-10-15 Thread Todd W
>> #!/usr/bin/perl -w >> >> use strict; # enforce variable declarations and quoting >> use DBI; >> use CGI qw(:standard); >> use Image::Size; >> print header, start_html(-title=>"UT-Austin University Supply >> Services"); >> print redirect('http://www.utexas.edu'); >> >> print end_ht

Re: help with redirect in CGI.pm

2002-10-15 Thread Brent Michalski
james, don't print out anything before the redirect statement. the redirect is actually a form of HTTP header, so by printing th eheader first, you end up printing out 2 headers and the redirect fails. hth, brent