--- contact.php 2001/02/19 16:22:20 1.1 +++ contact.php 2001/02/28 14:14:10 1.2 @@ -26,9 +26,22 @@ $email_to=$row[email]; } +$sth = $dbh->prepare("select iso,name from countries order by iso"); +$sth->execute(); +while ($row=$sth->fetchrow_hash()) { + $countries[]=$row; +} +$smarty->assign(array(countries=>$countries, + email_to=>$email_to, + )); + +include("common.inc"); $main=$smarty->fetch("$main_file.tpl"); -$smarty->assign( array(MAIN=>$main, from=>$from, contact_section=>1, email_to=>$email_to )); +$smarty->assign( array(MAIN=>$main, from=>$from, + contact_section=>1, + )); + $smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)." -- $section --". $url[0] . "from: $from");