Sample> SetMessage

<?php

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

$TPLN = new TPLN();
$TPLN->open('setMessage.html');

// here it is specified that for the next checking on a field, one wishes to personalize the message
// Restriction on which the personalized message will be posted in the event of error
$TPLN->notEmpty('r1''The month during which you were born is inevitably in the list seek!');

if(
$TPLN->formIsValid())
{

}
$TPLN->write();

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

<body>
<form action="" method="post" name="form">
    <p><strong>Select your month of birth :</strong>
        <br>
        <br>

        <input type="radio" name="r1" value="1">January<br>
        <input type="radio" name="r1" value="1">February<br>
        <input type="radio" name="r1" value="1">March<br>
        <input type="radio" name="r1" value="1">April<br>
        <input type="radio" name="r1" value="1">May<br>
        <input type="radio" name="r1" value="1">June<br>
        <input type="radio" name="r1" value="1">July<br>
        <input type="radio" name="r1" value="1">August<br>
        <input type="radio" name="r1" value="1">September<br>
        <input type="radio" name="r1" value="1">October<br>
        <input type="radio" name="r1" value="1">November<br>
        <input type="radio" name="r1" value="1">December

   <p>
         <input type="submit" name="button1" value="Envoyer" id="button1">
   </p>

  </form>

<bloc::form_valid>
<div id="form_valid">
Your form was submitted without errors !<br>
And replaced by bloc form_valid !
</div>
</bloc::form_valid>

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

</body>
</html>