<?php
|
require '../vendor/autoload.php';
|
use Smarty\Smarty;
|
$smarty = new Smarty();
|
|
$smarty->setTemplateDir('../ihtml');
|
$smarty->setCompileDir('../compile');
|
|
|
if(!empty($_GET['number']) && !empty($_GET['email'])) {
|
if(is_numeric($_GET['number']) && strlen($_GET['number']) == 10) {
|
$number = $_GET['number'];
|
$email = $_GET['email'];
|
}else {
|
$number = 'Numero di telefono non corretto';
|
$email = '';
|
}
|
}else {
|
$number = '';
|
$email = '';
|
}
|
|
$smarty->assign('cellNumber', $number);
|
$smarty->assign('email', $email);
|
$smarty->display('contact.tpl');
|
?>
|