TOPIC:

Fehler Absenden Formular mit Spam Check 1 week 3 days ago #282413

  • Topic Author
  • goeth
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 7
  • Thanks: 0
Hallo,

Jooma: 3.10.11
PHP: 8.2.3
Breezing Form: 1.9.1 (build 943)

das absenden des Formulars funktioniert nicht. Nach mühsamer suche, habe ich herausgefunden, das im ff_initLib die Zeile " if (!function_exists('ff_makePageUrl')) $this->execPieceByName('ff_makePageUrl');" nicht funktioniert,

Die weiteren Funktion macht dann eine Fehlermeldung in meinem spamcheck

"0 - implode(): Argument #2 ($array) must be of type ?array, string given"

Meine Funktion:

$this->execPieceByName('ff_InitLib');

// Prüfung Feld muss leer sein (HoneyPot)
$HoneyPotVal = ff_getSubmit('ihranliegen');
if ( $HoneyPotVal != '') {
// if (headers_sent() === false) header('Location: /index.php', true, 302);
// ff_die(__FUNCTION__." HoneyPot filled" );
ff_die("Vielen Dank (3)!" );
}


// Prüfung ob Felder Bad-Words enthalten
$badWordsArr = array('http','www','.ru','My name is','visit', 'your website', 'sex', 'money');
$checkFieldsArr = array('anmerkung', 'email');
foreach ($checkFieldsArr as $Fld) {
$FldVal = ff_getSubmit($Fld);
$matches = array();
$matchFound = preg_match_all("/\b(" . implode($badWordsArr,"|") . ")\b/i",$FldVal,$matches);
if ($matchFound) {
ff_die("Vielen Dank (4)!");
}
}

// Prüfung Vorname darf nicht gleich nachname sein
$vname = ff_getSubmit('vorname');
$nname = ff_getSubmit('name');
if ( $vname == $nname) {
// if (headers_sent() === false) header('Location: /index.php', true, 302);
// ff_die(__FUNCTION__." Vorname gleich Nachname" );
ff_die("Vielen Dank (5)!" );
}

Unter PHP 7.4 hat alles wunderbar funktioniert.

Bitte um Hilfe.
Liebe Grüße
Walter

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

  • Page:
  • 1
Time to create page: 0.038 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

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

Subscribe to news and updates!

Special Offer

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!