Alexandre Simonet 451bb54c50 Validate form
2016-02-25 10:42:49 +01:00

22 lines
615 B
PHP

<?php
require_once(dirname(__FILE__).'/../../config/config.inc.php');
require_once(dirname(__FILE__).'/../../init.php');
$controller->preProcess();
include_once(dirname(__FILE__).'/contactform.php');
include_once(dirname(__FILE__).'/Process.php');
include(dirname(__FILE__).'/../../header.php');
$result = null;
if (Tools::isSubmit('press_form')) {
$Process = new Process();
$result = $Process->addPress($_POST);
}
$smarty->assign('result', $result);
$smarty->assign('_POST', $_POST);
echo Module::display(dirname(__FILE__).'/contactform.php', 'press.tpl');
include(dirname(__FILE__).'/../../footer.php');