-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintForm.php
More file actions
executable file
·76 lines (63 loc) · 1.37 KB
/
intForm.php
File metadata and controls
executable file
·76 lines (63 loc) · 1.37 KB
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
<?php
class IntForm
{
public function viewHeader()
{
?>
<!DOCTYPE html>
<head>
<title>Captcha example</title>
<link href="https://fonts.googleapis.com/css2?&family=Ubuntu&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./template.css?" type="text/css">
</head>
<body>
<?php
}
public function viewForm($error, $message, $captcha)
{
?>
<div class="coluna-100 formulario" style="text-align: center;">
<?php
if(!$message)
{
?>
<div>
<b>Captcha example:</b>
</div>
<?php
}
else
{
?>
<div class="<?php if($error) echo "error"; else echo "success"; ?>">
<b><?php echo $message; ?></b>
</div>
<?php
}
?>
<form action="./index.php" method="post">
<div>
<b>Please, enter the following sequence and submit:</b>
</div>
<div>
<img src="<?php echo $captcha; ?>" class="captcha">
</div>
<div>
<input type="text" size="8" name="captcha" placeholder="Captcha" id="captcha" required>
</div>
<div>
<input type="submit" name="submit" value="Submit" class="button-submit">
</div>
</form>
</div>
<?php
}
public function viewFooter()
{
?>
</body>
</html>
<?php
}
}
?>