写一个jsp的转账界面,转出账户需要下拉框选择
时间: 2023-05-24 15:04:33 浏览: 100
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>转账界面</title>
<style>
label {
display: inline-block;
width: 100px;
text-align: right;
}
input[type="submit"] {
margin-left: 100px;
}
</style>
</head>
<body>
<h1>转账界面</h1>
<form action="transfer.jsp" method="post">
<div>
<label for="from_account">转出账户:</label>
<select name="from_account" id="from_account">
<option value="1">张三</option>
<option value="2">李四</option>
<option value="3">王五</option>
</select>
</div>
<div>
<label for="to_account">转入账户:</label>
<input type="text" name="to_account" id="to_account"/>
</div>
<div>
<label for="amount">转账金额:</label>
<input type="text" name="amount" id="amount"/>
</div>
<div>
<input type="submit" value="转账"/>
</div>
</form>
</body>
</html>
阅读全文