線上書籍

Home

[1062] PHP7入門

<?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');