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.
Related Article:parse error syntax error
is a PHP discussion thread by melaki that has 3 replies, was last updated 1 year ago and has been tagged with the keywords: parse, error, syntax.
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.