📄 add_new.jsp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=GBK"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK"/>
<title>add_new</title>
</head>
<body>
<%
HttpSession sess=request.getSession();
if (sess.getAttribute("token")==null) {
//out.print("<font color=red size=6>Sorry! You can not access the information!</font>");
%><jsp:forward page="back"/><%} %>
<form name="form1" action="add_friend" method="post"
enctype="application/x-www-form-urlencoded">
<p>
姓名:
<input type="text" name="frd_name" maxlength="20" size="20"/>
</p>
<p>
性别:
<select size="1" name="frd_sex">
<option value='男'>男</option>
<option value='女'>女</option></select>
</p>
<p>
类型:
<select size="1" name="frd_type_id">
<option value="1">
亲人
</option>
<option value="2">
朋友
</option>
<option value="3">
老师
</option>
</select>
<%
/*<a href='add_new.jsp?add=1'>添加新类型:</a>
String add = request.getParameter("add");
if(add==null)
;
else{
out.print("<form name='form13' method='post' action='add_new.jsp'>");
out.print("<input type='text' name='add_type' maxlength='10' size='10'/>");
out.print("<input type='submit' name='submit' value='添加'/>");
out.print("</form>");
}*/
%>
</p>
<p>
电话:
<input type="text" name="frd_tele" maxlength="25" size="25"
onblur="chk_tele_fmt()"/>
</p>
<p>
电邮:<input type="text" name="frd_email" maxlength="30" size="30"
onblur="chk_email_fmt()"/>
</p>
<p>
生日:<input type="text" name="frd_birth" maxlength="20" size="15"/>
</p>
<p>
备注:<textarea name="frd_describe" rows="3"></textarea>
</p>
<p>
</p>
<p>
<input type="submit" name="submit" value="新增"/><input type="reset"
name="reset"
value="重新填写"/>
</p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -