Source of: /ADI/auth-db-sessions/signup.php

<?php

require_once "HTML/Template/IT.php";

 
// Cria um novo objecto template
 
$template = new HTML_Template_IT('.');


 
$template->loadTemplatefile('signup_template.html', true, true);
 
$template->setCurrentBlock("MESSAGE");

      
   if (isset(
$_GET['m'])){   
   if (
$_GET['m'] == "1") {$template->setVariable('MESSAGE', 'One or more required fields were left blank. Please fill them in and try again.');}
   elseif (
$_GET['m'] == "2") {$template->setVariable('MESSAGE', 'A user already exists with your chosen userid. Please try another.');}
   }
   else {
$template->setVariable('MESSAGE', '');}

  

    
$template->parseCurrentBlock();

  
$template->show();
 
?>