TOPIC:

Prevent certain types of entry in form fields 6 days 8 hours ago #263692

  • dido
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 50
  • Thanks: 0
Ive disable the validation doesnt work :(

Please Log in or Create an account to join the conversation.

Prevent certain types of entry in form fields 6 days 8 hours ago #263693

  • dido
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 50
  • Thanks: 0
as test ive change the name of the field from "ihre_nachricht" to "nachricht"
no result

Please Log in or Create an account to join the conversation.

Prevent certain types of entry in form fields 6 days 8 hours ago #263697

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6926
  • Karma: 3
  • Thanks: 493
Hi,

ok, I will investigate it, and come back to you

In the meantime, please check Eddy's experince that I posted in message above

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Prevent certain types of entry in form fields 4 days 10 hours ago #263807

  • dido
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 50
  • Thanks: 0
on this:
$this->execPieceByName('ff_InitLib');
$badWords = array('.ru‘,'http','www', 'https', 'href','<','>','/');
$checkFields = array('txt_email‘,'nachricht');
foreach ($checkFields as $Fld) {
$FldVal = ff_getSubmit($Fld);
$matches = array();
$matchFound = preg_match_all(
'/\b(' . implode($badWords,'|') . ')\b/i',
$FldVal,
$matches
);
if ($matchFound) {
ff_die('Good-bye!');
}
}

I get:
syntax error, unexpected 'http' (T_STRING), expecting ')'

its based on this script
crosstec.org/en/forums/41-breezingforms-....html?start=6#256401

Please Log in or Create an account to join the conversation.

Last edit: Post by dido.

Prevent certain types of entry in form fields 4 days 10 hours ago #263809

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6926
  • Karma: 3
  • Thanks: 493
Hi,

in this part of code:
$badWords = array('.ru‘,'http','www', 'https', 'href','<','>','/');
use single apostrophe:
$badWords = array('.ru','http','www', 'https', 'href','<','>','/');
and this part:
$checkFields = array('txt_email‘,'nachricht');
use :
$checkFields = array('txt_email','nachricht');
Now it should works without error

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.

Prevent certain types of entry in form fields 4 days 10 hours ago #263810

  • dido
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 50
  • Thanks: 0
now i ve no error, but it does nothing. The form is send with the badwords :/

Please Log in or Create an account to join the conversation.

Moderators: ForumSupport
Time to create page: 0.052 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!