Parse error on Thank You message page.

addick 06 May, 2009
Hi

I have inserted the following lines of code into the "On Submit code - before sending email:" box.

<?php
global $mainframe:
$mainframe->enqueuemessage('Thanks for your message, we will get back to you shortly');
?>

When I fill the form out and click on submit the following text appears :

Parse error: syntax error, unexpected ':', expecting ',' or ';' in /home/www/thecostablancapropertyguide.com/components/com_chronocontact/libraries/customcode.php(52) : eval()'d code on line 2

Thank you for your enquiry. A member of OMM Spain will be in touch shortly.


I do though receive the form details.

Thanks


Richard
GreyHead 06 May, 2009
Hi Richard,

That needs to be global $mainframe; with a semi-colon not a colon.

Bob
addick 06 May, 2009
Hi Bob

Solved. Thanks again!

Richard
This topic is locked and no more replies can be posted.