I've been working on some code for a while, and it seems that I have a problem at the moment. The code, to me, looks correct and should work, but while trying to use PEAR to send mail out, it's throwing this error: PHP Parse error: syntax error, unexpected T_STRING in /srv/www/vhosts/fas/administrator/components/com_chronoforms/form_actions/custom_code/custom_code.php(18) : eval()'d code on line 82
Here is my code, and all of its comments made... sanitized from using the emails in the code.
I am aware there is still some code that is being used to test the script. Trying to test it, get it fully functional, then will clean up the code. ANY help would be greatly appreciated.
You are missing some quotes: $form->data[lastName] should be $form->data['lastName'] and so on. Bye.
While I appreciate the help, that is not where the error is occurring. That data is pulling from an application, and that bit works flawlessly. However, the error is being thrown while attempting to run the If() statement in regards to the use of PEAR.