-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwordQuery.php
59 lines (39 loc) · 1.81 KB
/
wordQuery.php
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>personal dictionary</title>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<div id="wrapper" class="hffeed">
<img src="jinshan.png" width=30% />
<h1>Word Query</h1>
<form action="wordProcess.php" method="post" >
请输入英文单词/Words: <input type="text" name="engword" />
<input type="hidden" name="type" value="query" />
<p> 验证码/checkCode: <input type="text" id="psw2" name="checkCode" />
<img src="checkCode.php" onclick="this.src='checkCode.php?aa='+Math.random()" /></p>
<input type="submit" value="查询" />
</form>
</div>
</body>
<?php
//错误类型处理
if( !empty( $_GET["errno"] ) ){
$err = $_GET["errno"];
if( $err == 1 ){
echo "<script type='text/javascript'>alert('请填入单词和解释!');</script>";
echo "<br/>          <font color='red' size='3' >您的用户名或密码错误!</font>";
}else if( $err == 2 ){
echo "<script type='text/javascript'>alert('单词和解释不能为空!');</script>";
echo "<br/>          <font color='red' size='3' >用户名或密码不能为空!</font>";
}else if( $err == 3 ){
echo "<script type='text/javascript'>alert('验证码出错!');</script>";
echo "<br/>          <font color='red' size='3' >验证码出错!!</font>";
}
}
// <?php echo $_COOKIE['usrid'];
?>
</html>