Have a look at forking in a cgi script and Watching long processes through CGI.
In reply to Re: Run perl script from web page by kyle in thread Run perl script from web page by smist