<?php
if (!empty($postresult)) {
	include 'includes/form-xmlresult.inc.php';
	
	echo formResult2Xml($postresult, $formmessages, $tplHelper);
} 

if (empty($postresult)) {
	if (isset($formmessages)) {
		include "includes/form-messages.inc.php"; 
	} # if
}
<?php
    require "includes/form-messages.inc.php";

    showResults($result);
Update template to use the new DTO object instead of relying on the old system
Update template to use the new DTO object instead of relying on the old system
