-
Notifications
You must be signed in to change notification settings - Fork 15
/
submit.html
98 lines (95 loc) · 3.19 KB
/
submit.html
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Inquiry - Fill out the form below</title>
</head>
<body>
<form id="form" name="form" method="post" action="updata.php" onsubmit="return check(this)">
<div><h2>Inquiry:</h2>
<p>We will try to respond as soon as possible</p></div>
<table width="100%" cellspacing="0">
<tr>
<td><label for="materials">materials:<span>(required)</span></label></td>
</tr>
<tr>
<td><input name="materials[]" type="checkbox" value="marble" /><input name="materials[]" type="checkbox" value="aggreagate" /></td>
</tr>
<tr>
<td><label for="application">application:<span>(required)</span></label></td>
</tr>
<tr>
<td><input name="application" type="text" id="application" /></td>
</tr>
<tr>
<td><label for="test">capacity:<span>(required)</span></label></td>
</tr>
<tr>
<td><input name="capacity" type="text" id="capacity" /></td>
</tr>
<tr>
<td><label for="products">products:<span>(required)</span></label></td>
</tr>
<tr>
<td><input name="products" type="text" id="products" /></td>
</tr>
<tr>
<td><label for="sTitle">title:<span>(required)</span></label></td>
</tr>
<tr>
<td><input name="title" type="text" id="stitle" /></td>
</tr>
<tr>
<td><label for="sName">Name:<span>(required)</span></label></td>
</tr>
<tr>
<td><input name="name" type="text" id="sName" /></td>
</tr>
<tr>
<td><label for="sEmail">Email:<span>(required)</span></label></td>
</tr>
<tr>
<td><input name="email" type="text" id="sEmail" /></td>
</tr>
<tr>
<td><label>Tel:<span>(optional)</span></label></td>
</tr>
<tr>
<td><input name="phone" type="text" /></td>
</tr>
<tr>
<td><label>Country:<span>(optional)</span></label></td>
</tr>
<tr>
<td><input name="country" type="text" /></td>
</tr>
<tr>
<td><label for="sContent">Inquiry:<span>(required)</span></label></td>
</tr>
<tr>
<td><textarea name="content" cols="45" rows="5" id="sContent" onfocus="if (this.value==text) {this.value='';this.style.cssText='color:#000000';} " onblur="if (this.value=='') {this.value=text;this.style.cssText='color:#808080'}"></textarea></td>
</tr>
<tr>
<td><input type="submit" value="Submit" class="submit" />
<input type="hidden" name="from_company" value="PPC" />
<input type="reset" value="Reset" class="submit" /></td>
</tr>
</table>
</form>
<a href="updata.php">test</a>
<script>
// 随机表单内容
function $(selector) {
return document.querySelector(selector);
}
$('input[name="application"]').value = 'concrete';
$('input[name="capacity"]').value = '300TPH';
$('input[name="products"]').value = 'sand making machine';
$('input[name="title"]').value = 'inquiry message title';
$('input[name="name"]').value = 'Ray';
$('input[name="email"]').value = '[email protected]';
$('input[name="phone"]').value = '12345678';
$('textarea').value = 'this is a inquiry message test. if you have any question, pls contact with [email protected]';
</script>
</body>
</html>