I am trying to get my first server side validation working with the help of an example on page 112 of ChronoForms 31 for Joomla site Cookbook eBook
I have this code in the Server Side Validation box:
Received this error:
Other threads suggested to check line (8 in this case) of the server side validation code but there are not 8 lines in my code so I'm a bit confused.
Thanks for any help.
Randall.
I have this code in the Server Side Validation box:
<?php
$title = JRequest::getString('title', '', 'post');
if ( !$title ) {
return "Please enter a Title";
}
?>
Received this error:
Parse error: syntax error, unexpected ')' in /home/xxxxxx/xxxx.xxxxxx.com/components/com_chronocontact/libraries/includes/JSrepublish.php(5) : eval()'d code on line 8
Other threads suggested to check line (8 in this case) of the server side validation code but there are not 8 lines in my code so I'm a bit confused.
Thanks for any help.
Randall.