|
|
|
 |
 |
 |
|
[ This topic is solved ]
|
|
djemmers
|
26 August 09 / 13:12 |
|
Changed at 26 August 09 / 13:17
the reason I am looking for a formhandler is that I want my forms to be safe from bots and things like sql injection.
does formhandler neutralise those threats?
|
|
|
Johan Wiegel (Admin)
|
26 August 09 / 13:36 |
|
No, every form can be posted by a bot.
There is a captcha field in FormHandler, to prevent bots.
If you use dbFormhandler post data is neutralized before inserting in the database.
|
|
|
djemmers
|
26 August 09 / 14:00 |
|
tnx for the quick answer.
can formhandler be used to create
forms like on this page? It is a test page, the forms don't work yet.
|
|
|
Johan Wiegel (Admin)
|
26 August 09 / 14:09 |
|
Changed at 26 August 09 / 14:18
Yes it can. in just a few lines:
<?php
include("includes/FH3/class.FormHandler.php");
function doRun( $aData )
{
print_r( $aData );
}
$aCountry = array( 'Nederland', 'België' );
$form = new FormHandler();
$form->setvalue('zoekterm' ,'omschrijving - titel');
$form->textField( '25/08/2009','zoekterm', FH_NOT_EMPTY );
$form->Checkbox( '', 'country', $aCountry,FH_NOT_EMPTY,'','',' ' );
$form->onCorrect( 'doRun' );
$form->SubmitButton('toernooi zoeken');
$form->flush();
?>
|
|
|
|
|
|
|