Hi Bob, Hope you can help me again.
I'm trying to validate if somebody with a spcfic e-amailaddress already has subscribed for an event with a spcific date.
I have this in now in Custom Server Side Validation before the e-mail ( including teh Event loop)
But it is'n working
I'm trying to validate if somebody with a spcfic e-amailaddress already has subscribed for an event with a spcific date.
I have this in now in Custom Server Side Validation before the e-mail ( including teh Event loop)
But it is'n working
<?php
$datum = JRequest::getString('datum', '', 'post');
$email = JRequest::getString('email', '', 'post');
if ($datum){
$db =& JFactory::getDBO();
$query = "
SELECT *
FROM `j17_chronoforms_data_INSCHRIJF_PP`
WHERE `datum` = '$datum'
AND `email` = '$email';
";
$db->setQuery($query);
if ($db->loadResult()==False);
$form->validation_errors['datum'] = "Sorry, etc etc etc .";
return false;}
?>