This script has it's root is daily practise.
A webdesign company used a mail-to Perl script to submit request forms to. They wanted a simple solution for handling multiple forms.
Using the form linker class it required verly little scripting from the calling page to realize this. It registers HTML form templates
and includes them with addition of an extra hidden element for use as index.
<?
// create object
include("linker.class.php");
$formlinker = new linker();
// these have to be set!
$formlinker->mailaction="./postpage.php";
// hidden settings for submit processor
$formlinker->mailhidden="./mailhidden.html";
// the form templates have to added
$formlinker->addform("./form1.html");
$formlinker->addform("./form2.html");
// etc.
// output correct form
$formlinker->writeform();
?>
This demo shows how forms can be chained together this way and submitted in the end.