in reply to sending post info from one script to another

A complete solution.

script1.cgi

#!/usr/bin/perl use CGI; my $cgi = new CGI; print $cgi->header(); print <<EOM; <form method="post" action="script2.cgi> <input type="submit" name="Name" value="Value"> </form> EOM

script2.cgi

#!/usr/bin/perl use CGI; my $cgi = new CGI; if ($cgi->param('Name') eq 'Value') { #your code here ... refer to by $cgi->param('var') }
And this is perl, and other people have other ways of doing it.