http://www.perlmonks.org?node_id=71798


in reply to submitting a form from within a script

Just off the top of my head, I'm thinkig you could do it the SuperHack(tm) easy way, and create a frame within your page that gets redirected to the external website and shown to the user as if it was a part of your site.

A better trick would be to use LWP::Simple to get the external page yourself and send the resulting HTML to your client. If you choose the hard(er) route, you might want to consider building the CGI variables right into the URL you pass to the external site in the form of:

http://external.html.page/externform.cgi?name=myclient&password=hispass&id=10

. . or maybe this isn't what you want at all.. . .