PHP botcheck

2 replies · opened Mar 2, 2021

CconsultpssMar 2, 2021

Greetings,

I'm nearly finished updating our website 6.0 from 3.0, and I'm working on updating the PHP on the form submissions. I've installed the latest version of PHPMailer, and the setup seems to be working. I have the form submission correctly displaying on a modal popup; however, when I try to test submission, I get forwarded to the bot detection message. I've tried using different names, different legitimate e-mail addresses, and different messages with no bot buzzwords. I'm also making sure to use our live (inside our intranet) test website so I'm not just trying to launch the form from the server files.

I also haven't changed the settings in the Bot Protection area of the php file:

	/*-------------------------------------------------
		Bot Protection
	---------------------------------------------------*/

	if( isset( $submits[ $prefix . 'botcheck' ] ) ) {
		$botpassed = true;
	}

	if( !empty( $submits[ $prefix . 'botcheck' ] ) ) {
		$botpassed = false;
	}

	if( $botpassed == false ) {
		echo '{ "alert": "error", "message": "' . $message['error_bot'] . '" }';
		exit;
	}

Is this an issue with the sensitivity of the botcheck, or could my coding me wrong?

SSemicolon WebSTAFFMar 3, 2021

Hello,

Please do not edit the Default PHP Codes. This issue appears to be with an error in your HTML Codes instead. Can you consider using the Default HTML Codes provided from the HTML Package or provide us with a Live URL so that we can check out the exact issue and provide you with more assistance on this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

CconsultpssMar 3, 2021

OK, I'll check through the HTML coding to see if I've overlooked something.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard