⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 buy2.jsp.txt

📁 该文件是用java开发工具编写的小型在线购物车jsp源程序
💻 TXT
字号:
<%@ page contentType="text/html;charset=gb2312" session="true"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>fruit</title>
<style type="text/css">
<!--
.style1 {
	font-size: 18px;
	font-weight: bold;
	color: #3333FF;
}
.style7 {color: #3333CC}
.style8 {color: #FF3300}
.style10 {color: #FF33FF}
.style11 {color: #009999}
-->
</style>
</head>

<body>
<% 		request.setCharacterEncoding("gb2312");
		response.setContentType("text/html;charset=GB2312");
		String[] book=request.getParameterValues("book");
		if(!book.equals(null))
		{
			for(int i=0;i<book.length;i++)
			{
				book[i]=new String(book[i].getBytes("ISO-8859-1"),"GB2312");	
			}			
		}			
		session.setAttribute("book",book);		
 %>
<form  method="get" action="buy3.jsp">
  <table width="400" border="1" align="center">
    <tr bgcolor="#99FFFF">
      <td colspan="2"><div align="center" class="style1">请选择您要购买的水果:</div></td>
    </tr>
    <tr>
      <td><div align="right">
        <input type="checkbox" name="fruit" value="苹果">
</div></td>
      <td width="237"><span class="style7">苹果</span></td>
    </tr>
    <tr>
      <td><div align="right">
        <input type="checkbox" name="fruit" value="香蕉">
      </div></td>
      <td><span class="style8">香蕉</span></td>
    </tr>
    <tr>
      <td><div align="right">
        <input type="checkbox" name="fruit" value="梨子">
      </div></td>
      <td><span class="style10">梨子</span></td>
    </tr>
    <tr>
      <td><div align="right">
        <input type="checkbox" name="fruit" value="荔枝">
      </div></td>
      <td><span class="style11">荔枝</span></td>
    </tr>
    <tr>
      <td colspan="2"><div align="center">
        <input type="submit" name="Submit" value="提交">
        <input type="reset" name="Submit2" value="重置">
      </div></td>
    </tr>
  </table>
</form>

</body>
</html>

⌨️ 快捷键说明

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