2016-10-9
370
0
利用PHP函数设置页面的头文件编码,即可,在php文件中加入如下代码:
header("Content-Type:text/html;charset=utf-8");
eg:
<?php
session_start();
include 'conn.php';
header("Content-Type:text/html;charset=utf-8");
$name=$_POST['Name'];
$pass=$_POST['Pass'];
$conn=new conn();
$info=$conn->findOne("select * from Userinfo where txtId='{$name}'…继续阅读 »