6-13.txt

来自「jsp常用实例讲解」· 文本 代码 · 共 46 行

TXT
46
字号
<%
String getnumber=new String();
getnumber=(String)application.getAttribute("number");
if(getnumber==null){
application.setAttribute("number","0");
}
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>一个简单的留言板</title>
</head>

<body bgcolor="#66CCFF">

<p align="center"><b><font size="5" face="华文新魏" color="#FFFFFF">一个简单的留言板</font></b></p>
<hr>
<form method="POST" action="board2.jsp">
  <div align="center">
    <center>
    <table border="1" width="400" cellpadding="2">
      <tr>
        <td width="100" align="right"><font color="#FF00FF" size="4"><b>作者:</b></font></td>
        <td width="300"><input type="text" name="inputauthor" size="20"></td>
      </tr>
      <tr>
        <td width="100" align="right"><font color="#FF00FF" size="4"><b>留言标题:</b></font></td>
        <td width="300"><input type="text" name="inputtitle" size="20"></td>
      </tr>
      <tr>
        <td width="100" align="right"><font color="#FF00FF" size="4"><b>留言内容:</b></font></td>
        <td width="300"><textarea rows="6" name="inputcontent" cols="35"></textarea></td>
      </tr>
    </table>
    </center>
  </div>
  <p align="center"><input type="submit" value="添加留言" name="B1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <input type="reset" value="重写留言" name="B2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <input type="button" value="查看留言" name="B3" onClick="window.open('board3.jsp','','toolbar=no,location=no,status=no,menubar=no,width=400,height=400')"></p>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?