-
Notifications
You must be signed in to change notification settings - Fork 1
/
99sushe.php
51 lines (51 loc) · 1.12 KB
/
99sushe.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
<?php
require('functions.php');
if(isset($_POST['id']))
{
header('Content-Type: text/html;charset=utf-8');
$src='http://cet.99sushe.com/s';
$id=$_POST['id'];
$name=$_POST['name'];
$ch=curl_init();
curl_setopt_array(
$ch,
array(
CURLOPT_URL => $src,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => 'id='.$id.'&name='.mb_convert_encoding($name,'gbk','utf-8'),
CURLOPT_REFERER=> 'http://cet.99sushe.com/'
)
);
$content=curl_exec($ch);
if(curl_errno($ch)==0){
showscore($content,$id);
}
else
{
echo curl_error ($ch);
}
}
else
{
?>
<form name='query' action="99sushe.php" method="post">
<table style='margin:0 auto; line-height:25px;'>
<tr>
<td>准考证号:</td>
<td><input name='id' type='text' /></td>
<td>请输入15位准考证号</td>
</tr>
<tr>
<td>姓名:</td>
<td><input name='name' type='text' /></td>
<td>请输入姓名前两字</td>
</tr>
<tr>
<td colspan='3' align='center'><input type='submit' value='查询' /></td>
</tr>
</table>
</form>
<?php
}
?>