#!/usr/bin/perl -w use strict; $|++; BEGIN{ use CGI qw(:standard); print header; print start_html; print "Please wait"; print end_html; } sleep 5; # Code that process form would actually go here require Perl_file_that_redirects_browser_goes_here.pl; # Above line simply calls a Perl file that uses CGI.pm "redirect" function to redirect the browser to the desired page.