-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathform.php
More file actions
34 lines (32 loc) · 833 Bytes
/
Copy pathform.php
File metadata and controls
34 lines (32 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<form method="post" name="print">
<label>姓名</label>
<input type="text" name="name" id="name">
<label>职位</label>
<input type="text" name="position" id="position">
<label>公司</label>
<input type="text" name="company" id="company">
</form>
<a href="javascript:void(0);" id="submit">提交</a>
<script type="text/javascript" src="/public/jquery.js"></script>
<script type="text/javascript">
$("#submit").click(function(){
var name = $("#name").val();
var position = $("#position").val();
var company = $("#company").val();
if(name == ''){
alert('null');
}else{
$.post('/printer.php',{"name":name,"company":company},function(res){
})
}
})
</script>
</body>
</html>