页面跳转

$insert=mysql_query("insert into tb_user(`username`,`true_name`,`password`,`sex`,`tel`,`email`,`qq`,`indexs`,`address`,`tx`)
    values('$username','$true_name','$password','$sex','$tel','$email','$qq','$indexs','$address','$tx')",$conn);
               
    if($insert)
    {
        echo "<script>alert('注册成功!');window.location.href='index.php';</script>";
    }else
    {
        echo "<script>alert('注册失败!');window.location.href='index.php';</script>";
    }


你可能感兴趣的:(insert,email,password,values,Address)