日期:2014-05-17 浏览次数:20554 次
@header("content-Type: text/html; charset=utf-8");
require_once 'inc/site_config.php';
require_once 'inc/db_connections.php';
require_once 'inc/function.php';
mysql_query('set character set "utf8"');
session_start();
if($_REQUEST['action']=='postreg'){
$sql_check_usr="select * from `reguser` where `UserId`='".$_SESSION['uid']."'";
$info=mysql_query($sql_check_usr);
$dingdanhao=date("YmjHis").$info[UserId];
$spc=$_SESSION[producelist];
$slc= $_SESSION[quatity];
$shouhuoren=$_POST['trusername'];
$dizhi=$_POST['address'];
$youbian=$_POST['phone'];
$tel=$_POST['mob'];
$email=$_POST['email'];
if(trim($_POST['d_content'])==""){
$leaveword="";
}
else{
$leaveword=$_POST['d_content'];
}
$xiadanren=$_SESSION['uid'];
$time=date("Y-m-j H:i:s");
$total=$_SESSION[total];
$sql_add_usr="INSERT INTO onlineorder (dingdanhao,spc,slc,UserName,address,phone,mobile,mail,yqinfo,OrderTime,UserId,total_price) VALUES ('$dingdanhao','$spc','$slc','$trusername','$address','$phone','$mob','$email','$d_content','$time','$xiadanren','$total')";
mysql_query($sql_add_usr);
}