Hi,
My so-called day job required typesetting a stack of ballots for the upcoming election for our county... dull dull dull. :o
Thanks sgarrista for your help. I really appreciate it. To show more what I was doing (and it works!) here is the code:
$elements = array("first_name"=>"required","last_name"=>"required","company_name"=>"","company_name_2"=>"label((Other Business Name))", etc);
extract(load_elements());
function load_elements() {
global $elements;
$return = array();
foreach($elements as $key=>$value) {
$return[$key] = new field($key,$value);
}
return $return;
}