?? d05fe415a97b001c1418dc9927273de5
字號:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script language="javascript">
function check()
{
if (form1.Order.value == "")
{
alert("訂單號不能為空,請輸入用戶名!");
form1.Order.focus();
return false;
}
if (form1.Buyer.value == "")
{
alert("購買人不能為空,請輸入密碼!");
form1.Buyer.focus();
return false;
}
if (form1.Itemnum.value == "")
{
alert("物料號不能為空,請輸入密碼!");
form1.Itemnum.focus();
return false;
}
if (form1.Item.value =="" )
{
alert("物料不能為空");
form1.Item.focus();
return false;
}
if (form1.Num.value=="")
{
alert("數量不能為空");
form1.Num.focus();
return false;
}
if(form1.Price.value=="")
{
alert("單價不能為空");
form1.Price.focus();
return false;
}
}
</script>
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'add.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<font size="5">請你填寫完以下信息</font>
<form name="fom1" method="post" action="success.jsp" onsubmit="return check()">
<p>訂單號:<input type="text",name="Order"></p>
<p>購買人:<input type="text",name="Buyer"></p>
<p>物料號:<input type="text",name="Itemnum"></p>
<p>物料:<input type="text",name="Item"></p>
<p>數量:<input type="text",name="Num"></p>
<p>單價: <input type="text",name="Price"></p>
<p><input type="submit" value="確定">
<input type="reset" value="取消"></p>
<br>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -