时间:2021-07-01 10:21:17 帮助过:2人阅读
error_reporting(0);
session_start();
require('../libs/Smarty.class.php');
$smarty = new Smarty;
//$smarty->force_compile = true;
$smarty->debugging = false;
$smarty->caching = false;
$smarty->cache_lifetime = 120;
if($_POST['ok'].value==1)
{
$username=$_POST['username'];
$userpwd=$_POST['userpwd'];
$query=mysql_query("INSERT INTO user (user,pwd) values
('$username','$userpwd')")or die(mysql_error());
if($query)
{
$response="
";
}
else
{
$response="";
}
}
$smarty->assign("regstatus",$response);
$smarty->display("reg.html");
?>