Sample> Captcha

<?php

// include TPLN
include('TPLN/TPLN.php');

$TPLN = new TPLN;

session_start();

$TPLN->setCaptchaMax(-1); // 3 tries by default put -1 to unlimited
$TPLN_CAPTCHA_FIELD $TPLN->getCaptcha();

$TPLN->open('captcha.html');
$TPLN->notEmpty('name');

if(
$TPLN->formIsValid())
{

}

$TPLN->Write();


?>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Captcha Example</title>
    <link href="../style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<form action="" method="post" name="form">

{$TPLN_CAPTCHA_FIELD}<br />
<hr />
Name <input name="name" type="text" value="" />
<br />
<br />
<br />

<input type="submit" value="Send" />

</form>

<bloc::form_valid>
<div id="form_valid">
It is ok your form is submitted !
</div>
</bloc::form_valid>


<br>
<br>
{_Logo}<font size="1"> in {_Chrono} s<br>
Queries executed: {_QueryCount}</font>

</body>
</html>