my $x = new CGI; my @var = $x->param; #### function submitFormInfo () { form.action="http://foo/bar.pl"; form.submit(); }