Hi,
I have created my form etc in Joomla 1.6. In my custom coding I have inserted this code:
As I want users to select a person from a drop down menu. And whoever that person selects, it will send the form to. This code was in the FAQs - number 31.
Now, whenever I try to submit the form I get this error -
Can someone help me please!!!!!!
Thanks in advance
I have created my form etc in Joomla 1.6. In my custom coding I have inserted this code:
<?php$emails_2 = array('em1'=>'sample1@email.com', 'em2'=>'sample2@email.com', 'em3'=>'name_3@example.com', . . .);$MyForm =& CFChronoForm::getInstance('form_name_here');$MyFormEmails =& CFEMails::getInstance($MyForm->formrow->id);$MyFormEmails->setEmailData(1, 'to', $emails_2[$_POST['recipients']]);?>
As I want users to select a person from a drop down menu. And whoever that person selects, it will send the form to. This code was in the FAQs - number 31.
Now, whenever I try to submit the form I get this error -
Fatal error: Class 'CFEmails' not found in C:\xampp\htdocs...\administrator\components\com_chronoforms\form_actions\custom_code\custom_code.php(17) : eval()'d code on line 28.
Can someone help me please!!!!!!
Thanks in advance