[TYPO3-project-formidable] Simpel Form Validation

Christian Tauscher cms at media-distillery.de
Wed Apr 16 23:23:24 CEST 2008


If a form is submitted, then I the

PostVar:AMEOSFORMIDABLE_SUBMITTED == 1

but how can I ceck if everything is valid? There semms not to be a 
Parameter and a method like $oForm->valid() is not given. So I have to 
programm my own method for final validaton?

my code looks like this at the moment:

if($this->piVars['AMEOSFORMIDABLE_SUBMITTED'] == 1 &&
	$this->vlidateForm())
	{
	$out = "Perfekt!";
	}
else
	{
	$this->oForm = t3lib_div::makeInstance("tx_ameosformidable");
	$this->oForm->init(
		$this,
		"...formidable.xml");		
	$out = $this->oForm->render();
	}


Method vlidateForm() checks again what formidable already has done.

Hope you know what I mean,

Christian.


More information about the TYPO3-project-formidable mailing list