?? addtel.jsp~42~
字號:
<%@page contentType="text/html; charset=GBK"%>
<html>
<head>
<title>addtel</title>
</head>
<body bgcolor="#c0c0c0">
<%
String a = request.getParameter("uname");
String b = request.getParameter("utel");
// System.out.println("b,c");
if (a.equals("") || b.equals("")) {
out.print("<h1 align='center'>請填寫完整!</h1><br>");
out.print("<a href='jsp1_jiemian.jsp'>返回</a>");
return;
}
try {
int d=Integer.parseInt(b);
}
catch (Exception ex) {
out.print("<h1 align='center'>電話號碼輸入有誤!</h1><br>");
out.print("<a href='jsp1_jiemian.jsp'>返回</a>");
return;
}
boolean f = telbook.SQL_jh.addTel(a,b);
if (f) {
response.sendRedirect("jsp2_xianshi.jsp");
}
else {
out.println("<h1 align='center'>添加失敗!</h1><br>");
out.print("<a href='jsp1_jiemian.jsp'>返回</a>");
}
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -