|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
|
|
|
|
|
<title>注册</title>
|
|
|
|
|
|
|
|
|
|
<!-- Bootstrap -->
|
|
|
|
|
<link href="css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
|
<link rel="stylesheet" href="qianduan/css/p-i.css">
|
|
|
|
|
<!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
|
|
|
|
|
<!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
|
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
|
|
|
|
|
<![endif]-->
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
function fpost() {
|
|
|
|
|
var xmlhttp;
|
|
|
|
|
if (window.XMLHttpRequest)
|
|
|
|
|
{// code for IE7+, Firefox, Chrome, Opera, Safari
|
|
|
|
|
xmlhttp=new XMLHttpRequest();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{// code for IE6, IE5
|
|
|
|
|
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
|
}
|
|
|
|
|
var bookname1=document.getElementById("bookname").value;
|
|
|
|
|
var category1=document.getElementById("category").value;
|
|
|
|
|
var price1=document.getElementById("price").value;
|
|
|
|
|
xmlhttp.open("GET","servlet?bookname=bookname",true);
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<form action="upload.action"method="post">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="exampleInputName2">书名</label>
|
|
|
|
|
<input type="text" class="form-control" name="bookname" placeholder="请输入书名">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="exampleInputName2">种类</label>
|
|
|
|
|
<input type="text" class="form-control" name="category" placeholder="种类">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="exampleInputName2">定价</label>
|
|
|
|
|
<input type="text" class="form-control" name="price" placeholder="定价">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="exampleInputFile">请选择图片</label>
|
|
|
|
|
<input type="file" id="book-img1">
|
|
|
|
|
<input type="file" id="book-img2">
|
|
|
|
|
<input type="file" id="book-img3">
|
|
|
|
|
<input type="file" id="book-img4">
|
|
|
|
|
<input type="file" id="book-img5">
|
|
|
|
|
<p class="help-block">选择五张图片</p>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div class="checkbox">-->
|
|
|
|
|
<!-- <label>-->
|
|
|
|
|
<!-- <input type="checkbox"> Check me out-->
|
|
|
|
|
<!-- </label>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<button type="submit" class="btn btn-default">提交</button>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|