Back
<?php
// highlight file option..
if( !empty($_GET['source']) ) 
{
    echo 
    "<a href='".$_SERVER['PHP_SELF']."'>Back</a>\n".
    "<br />\n".
    "<hr size='1' />\n";
    highlight_file( __FILE__ );
    exit;
} 
else 
{
    echo 
    "<a href='".$_SERVER['PHP_SELF']."?source=1'>View source code</a> |\n".
    "<a href='loader2.php?source=1'>View source code of loader.php</a>\n".
    "<hr size='1' />\n";
}
// include formhandler
include('../includes/FH3/class.FormHandler.php');
// create a new formhandler object
$form = new FormHandler();
// the counry's for the country field
$countrys = array(
  0 => ' -- Select -- ', 
  1 => 'Country1',
  2 => 'Country2'
);  
// the fields
$form->selectField("Country", "country", $countrys, FH_NOT_EMPTY);
$form->selectField("Town", "town", array(), FH_NOT_EMPTY);
$form->selectField("Street", "street", array(), FH_NOT_EMPTY, false);
// link the selectfields
$form->linkSelectFields("loader2.php", "country", "town", "street");
// button to submit the form
$form->submitButton();
// set the handler
$form->onCorrect('doRun');
// display the form
$form->flush();
function doRun( $data ) 
{
    echo "<pre>";
    print_r( $data );
    echo "</pre>";
}
?>