📄 add_form.asp
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>通讯录</title>
<script language=javascript>
<!--
function CheckForm()
{
if(document.form1.name.value=="")
{
alert("请输入用户名!");
document.form1.name.focus();
}
if(document.form1.sex.value=="")
{
alert("请输入用户性别!");
document.form1.sex.focus();
}
if(document.form1.sushe.value=="")
{
alert("请输入宿舍!");
document.form1.sushe.focus();
}
if(document.form1.sushetel.value == "")
{
alert("请输入宿舍电话!");
document.form1.sushetel.focus();
}
if(document.form1.tel.value == "")
{
alert("请输入移动电话!");
document.form1.tel.focus();
}
if(document.form1.birthday.value == "")
{
alert("请输入生日!");
document.form1.birthday.focus();
}
var address=document.form1.email.value;
if ((address== "") || (address.indexOf ('@') == -1) || (address.indexOf ('.') == -1))
{
alert("您输入的E-mail地址不正确,请重新输入,谢谢!");
document.form1.email.focus();
}
if(document.form1.qq.value == "")
{
alert("请输入qq!");
document.form1.qq.focus();
}
if(document.form1.jiguan.value == "")
{
alert("请输入籍贯!");
document.form1.jiguan.focus();
}
}
-->
</script>
<style type="text/css">
<!--
body {
background-color: #9900FF;
background-image: url(../images/star01.jpg);
}
-->
</style>
<link href="../images/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p> </p>
<p align="center"><img src="../images/photoimg89.qq.gif" width="600" height="50" /></p>
<div align="center" class="text">
<p><br>
添加联系人</p>
<p> </p>
</div>
<table width="319" border="0" align="center" bgcolor="#9900FF">
<tr>
<td width="313" background="../images/star01.jpg">
<form name="form1" method="post" onSubmit="CheckForm();" action="add.asp">
<p align="center"><span class="text">用户名:
<input type="text" name="name" />
</span>
<p align="center">
<span class="text" >
<label>性别:
<input type="text" name="sex" />
</label>
</span>
<p align="center" class="text">宿舍:
<input type="text" name="sushe" >
</p>
<p align="center"><span class="text"> 宿舍电话:
<input type="text" name="sushetel" >
</span>
<p align="center"><span class="text">移动电话:
<input type="text" name="tel" >
</span>
<p align="center">
<span class="text">
<label>生日:
<input type="text" name="birthday" />
</label>
</span></p>
<p align="center" class="text">email:
<input type="text" name="email" />
</p>
<p align="center">
<span class="text">
<label>QQ:
<input type="text" name="qq" />
</label>
</span></p>
<p align="center">
<span class="text">
<label>籍贯:
<input type="text" name="jiguan" onkeypress="CheckForm();"/>
</label>
</span></p>
<p align="center">
<span class="text">
<input type="submit" name="Submit" value="提交" >
<input type="reset" name="Submit2" value="重置">
</span></p>
</form></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -