<?php // include_once require_once 'smarty/libs/Smarty.class.php'; $smarty = new Smarty; //標題 $title = $_POST['title']; $smarty->assign('title', $title); //顏色 $color = $_POST['color']; $smarty->assign('color', $color); $smarty->assign('now', date("Y年m月d日 H:i:s")); $smarty->display('index.tpl');