procesor = $procesor;
$this->submit = $submit;
}
function displayForm() {
echo "
";
}
function addField($name,$label){
$field = array('name' => $name, 'label' => $label);
$this->fields[] = $field;
}
}
echo "Phone form";
$phone_form = new Form("process.php","Submit Phone");
$phone_form->addField("first_name","First Name");
$phone_form->addField("last_name","Last Name");
$phone_form->addField("phone","Phone");
echo "Please fill out the following form:
";
$phone_form->displayForm();
echo "";
?>