------解决方案--------------------1、表单">
时间:2021-07-01 10:21:17 帮助过:22人阅读
无标题文档
$db = mysql_connect("localhost", "root", "root");
mysql_select_db("test", $db);
if(isset($_POST['submit'])&&$_POST['submit'])
{
$sql="insert into customers_id(c_id,c_name,sector,e_address,mail_address,classification,started_date,contact,con_address)
values('$_POST[c_id]','$_POST[c_name]','$_POST[sector]','$_POST[e_address]','$_POST[mail_address]','$_POST[classification]''$_POST[started_date]','$_POST[contact]','$_POST[con_address]''now()'";
mysql_query($sql);
echo "成功";
}
?>
echo "注册成功";
?>