Hi,
We are using chronoforms 3.2 on a Joomla 1.5 site. We have a captcha, but still getting lots of spam.
What I would like to do is check the Message textarea field, in the "On Submit - before sending email" field, and if there is a URL in the message not send the email to the site owner or the autoreply to the submitter. How do I stop the emails from being sent if I determine there is 'bad' data in the message field?
The textarea message field is defined like so:
I believe I would get the textarea field like so:
I can then check the message and determine if I want to stop the emails from being sent. I just don't know how to stop the email processing from continuing.
Thank you.
We are using chronoforms 3.2 on a Joomla 1.5 site. We have a captcha, but still getting lots of spam.
What I would like to do is check the Message textarea field, in the "On Submit - before sending email" field, and if there is a URL in the message not send the email to the site owner or the autoreply to the submitter. How do I stop the emails from being sent if I determine there is 'bad' data in the message field?
The textarea message field is defined like so:
<textarea class="cf_inputbox required" rows="6" id="message" title="Please send us your message" cols="30" name="message"></textarea>
I believe I would get the textarea field like so:
$message = JRequest::getString('message', '', 'post');
I can then check the message and determine if I want to stop the emails from being sent. I just don't know how to stop the email processing from continuing.
Thank you.