in reply to PERL and CGI

If I'm understanding you correctly you might be able to create an iframe that displays your script's form and cause it to appear as being in the same page.

eg.
<html> <body> <iframe title="Form" frameBorder="0" width="100%" height="100%" src="f +orm.pl" > </iframe> </body> </html>