<?php
require_once( 'smarty_inc.php');
require_once ('conn.php');
$name=$_POST["text"];
$title=$_POST["textfield"];
$content=$_POST["textarea"];
if($_POST["text"]!=""&&$_POST["textfield"]!=""&&$_POST["textarea"]!="") {
insto($name,$title,$content,$time);
}
$smarty=new Smarty();
$smarty->display('index.html');
?>这是index.php文件,把这段代码完全复制到另一个新建文件1.php中,只是把index.html改成1.html,并且1.html跟index.html内容是完全一样的,为什么运行1.php后程序的中文部分会显示乱码啊?原来的index.php运行起来是正常的,十分不解
编码一致吗,UTF-8 还是 gb2312
————————————————————————————————
基于CSDN论坛提供的插件扩展功能,自己做了个签名档工具,分享给大家,欢迎技术交流 :)