【php开源代码栏目提醒】:网学会员为广大网友收集整理了,savehz.php,希望对大家有所帮助!
<?php
include"conn/conn.php";
$name=$_POST[name];
$sex=$_POST[sex];
$tel=$_POST[tel];
$career=$_POST[career];
$culture=$_POST[culture];
$email=$_POST[email];
$yb=$_POST[yb];
$address=$_POST[address];
if($_POST[submit]!=""){
$sql="insert into tb_reader(name,sex,tel,career,culture,email,yb,address) values('$name','$sex','$tel','$career','$culture','$email',$yb,'$address')";
$info=mysql_query($sql);
if($info){
?>
<script language="javascript">
alert("恭喜您,读者回执单据添加成功!");window.location.href="StartExam.php";
</script>
<?php
}else{
?>
<script language="javascript">
alert("对不起,读者回执添加失败!");window.location.href="StartExam.php";
</script>
<?php
}
}
?>
上一篇:
saveedituserinfo.php
下一篇:
哈弗F7 VS名爵HS,谁更懂得年轻人的心?