-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·42 lines (30 loc) · 911 Bytes
/
Copy pathindex.php
File metadata and controls
executable file
·42 lines (30 loc) · 911 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
35
36
37
38
39
40
41
42
<?php
// ++++++++++++++++++++++++++++++++++++++
// This example show ho to use the Class CtrlCaptcha
// ++++++++++++++++++++++++++++++++++++++
session_start();
$name = "Example";
$error = null;
$message = null;
include_once("ctrlCaptcha.php");
$ctrlCaptcha = new CtrlCaptcha();
if(isset($_POST["submit"]))
{
include_once("ctrlFormSubmit.php");
$ctrlFormSubmit = new CtrlFormSubmit();
$error = $ctrlFormSubmit->ctrlMain($ctrlCaptcha, $name);
unset($ctrlFormSubmit);
}
else
{
if(isset($_SESSION["message"])) unset($_SESSION["message"]);
}
$captcha = $ctrlCaptcha->ctrlMain($name);
unset($ctrlCaptcha);
if(isset($_SESSION["message"])) $message = $_SESSION["message"];
include_once("intForm.php");
$intForm = new IntForm();
$intForm->viewHeader();
$intForm->viewForm($error, $message, $captcha);
$intForm->viewFooter();
?>