【php开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了php开源代码-insert_customer.php的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css/sytle.css">
<title>客户信息管理</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<script language="javascript">
function checkit(){
if(form1.customer_name.value==""){
alert("请输入!");
form1.customer_name.select();
return(false);
}
if(form1.customer_tel.value==""){
alert("请输入电话号码!");
form1.customer_tel.select();
return(false);
}
if(form1.customer_mail.value==""){
alert("请输入邮箱地址!");
form1.customer_mail.select();
return(false);
}
if(form1.customer_birthday.value==""){
alert("请输入生日!");
form1.customer_birthday.select();
return(false);
}
return(true);
}
</script>
<body>
<table width="440" height="219" border="0" align="center" cellpadding="0" cellspacing="0" background="images/bg_36.gif">
<tr>
<td height="40" colspan="2" align="left"> <span class="STYLE33">客户信息添加</span></td>
</tr>
<form name="form1" method="post" action="insert_customer_ok.php" onSubmit="javascript: return checkit()">
<tr>
<td width="107" align="center" class="STYLE1"></td>
<td width="333"><input name="customer_name" type="text" id="customer_name" size="25"></td>
</tr>
<tr>
<td align="center" class="STYLE1">电话</td>
<td><input name="customer_tel" type="text" id="customer_tel" size="28" maxlength="20">
<span class="STYLE1">*</span></td>
</tr>
<tr>
<td align="center" class="STYLE1">邮箱</td>
<td><input name="customer_mail" type="text" id="customer_mail" size="28" maxlength="20">
<span class="STYLE1">*</span></td>
</tr>
<tr>
<td align="center" class="STYLE1">生日</td>
<td><input name="customer_birthday" type="text" id="customer_birthday" size="15" maxlength="20">
<span class="STYLE1">*(例如:1-11)</span></td>
</tr>
<tr>
<td align="center" class="STYLE1">地址</td>
<td><input name="customer_address" type="text" id="customer_address" size="40" maxlength="20"></td>
</tr>
<tr>
<td align="center" class="STYLE1">类别</td>
<td><input name="customer_category" type="text" id="customer_category" size="28" maxlength="20"></td>
</tr>
<tr>
<td height="47"> </td>
<td><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置"></td>
</tr>
</form>
</table>
</body>
</html>