if ($foo eq "successfull") { print $query->redirect(-location=>'http://example.com/cgi-bin/secondscript.pl?foo1=$foo1&foo2=$foo2',-nph=>1); exit; } #### print "Content-type: text/html\n\n"; print