Please, can someone help me with the php validation?
Is this right?
<code>
$app = JFactory::getApplication();
$first = $app->input->get('tablename___firstname', 'default value', 'string');
$last= $app->input->get('tablename___lastname', 'default value', 'string');
$birth= $app->input->get('tablename___birthday', 'default value', 'string');
if($first==$data(firstname) && $last==$data(lastname) && $birth==$data(birthday)) return false;
else return true;
</code>
To explane what I want:
If someone fill in the form it should be checked if the firstname, lastname and birthday already exist.
Is it right to put this code in element - elment_lastname - validation?
Than you
Nadja