📄 customer_ok.php
字号:
<?php include("conn/conn.php");
if($Submit==true and $customer_user==true){
if(preg_match("/^(\d{3}-)(\d{8})$|^(\d{4}-)(\d{7})$|^(\d{4}-)(\d{8})$|^(\d{11})$/",$customer_tel,$countes)){
$query=mysql_query("insert into tb_customer(customer_user,customer_tel,customer_address)values('$customer_user','$customer_tel','$customer_address')");
if($query==true){
echo "<script> alert('客户信息添加成功');window.location.href='indexs.php?lmbs=客户信息管理';</script>";
}
}else{
echo "<script>alert('您输入的电话号码格式不正确!!');history.back()</script>";
}
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -