-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
23 lines (17 loc) · 794 Bytes
/
home.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!--STEP 1: Include the following codes on top.-->
<?php
include 'captchaCode.php';
/*Captcha containing alphabets and numbers*/
//$code = $captchaCode->getCode('alphabets'); /*Captcha containing only alphabets*/
//$code = $captchaCode->getCode('numbers'); /*Captcha containing only numbers*/
//$code = $captchaCode->getCode('alphanum'); /*Captcha containing alphabets and numbers*/
//$code = $captchaCode->getCode(''); /*Math Captcha*/
$code = $captchaCode->getCode('');
$numc = $captchaCode->c;
?>
<!--STEP 2: Include this link where you want to display the captcha-->
<img src='captchaImage.php?numc=<?php echo $numc ?>&code=<?php echo $code ?>' >
<!--After submiting captcaha value by the user verify it by '$code'. $code contains the correct value of captcha-->
<?php
echo $code;
?>