Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FormMail code for Captcha

Featured Replies

Hello

 

I followed instructions on Wiki for using FormMail for Captcha.

 

When I fill out my contact form it fails and says internal error has occurred.

 

My hosting provider sent me the following message regarding this:

 

Bareword found where operator expected at FormMail1.pl line 740, near "$error eg"

(Missing operator before eg?)

String found where operator expected at FormMail1.pl line 740, near "eg 'captcha_failed'"

(Do you need to predeclare eg?)

syntax error at FormMail1.pl line 740, near "$error eg "

Can't find string terminator "END ERROR HTML)" anywhere before EOF at FormMail1.pl line 741.

 

 

I don't really know what the above means, but I changed the g to a q in eg and made a few changes but still not working.

 

Can anyone see what is wrong with the following section of formMail script at line 740(print....is line 740):

 

}

elsif ($error eq 'captcha_failed') {

print <<"(END ERROR HTML)";

Content-type: text/html

 

How do I check scripts using bareword?

 

Thanks in advance for any advice

Hello

 

I followed instructions on Wiki for using FormMail for Captcha.

 

When I fill out my contact form it fails and says internal error has occurred.

 

My hosting provider sent me the following message regarding this:

 

Bareword found where operator expected at FormMail1.pl line 740, near "$error eg"

(Missing operator before eg?)

String found where operator expected at FormMail1.pl line 740, near "eg 'captcha_failed'"

(Do you need to predeclare eg?)

syntax error at FormMail1.pl line 740, near "$error eg "

Can't find string terminator "END ERROR HTML)" anywhere before EOF at FormMail1.pl line 741.

 

 

I don't really know what the above means, but I changed the g to a q in eg and made a few changes but still not working.

 

Can anyone see what is wrong with the following section of formMail script at line 740(print....is line 740):

 

}

elsif ($error eq 'captcha_failed') {

print <<"(END ERROR HTML)";

Content-type: text/html

 

How do I check scripts using bareword?

 

Thanks in advance for any advice

 

for one this line

elsif ($error eq 'captcha_failed') {

 

should be this line

elseif ($error eq 'captcha_failed') {

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.