Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

contact us - Short Form with Captcha


SharingDOODLES

Recommended Posts

Hello,

 

I was wondering if someone could please help me with the Contact Us - Short Form with Captcha

contribution, http://addons.oscommerce.com/info/4960

 

I have installed it and at first everything seemed fine, however the "security code" isnt showing up in the box with the image, (image is there but no code)

 

I was wondering does anyone know what might be causing this?

 

I have uncommented extension=php_gd2.dll in my php.ini file as it uses the GD libary but it dosent seem to make any differance.

 

any help would be appreciated

Paul

Link to comment
Share on other sites

update:

 

Does anyone know a good captcha that will work with oscommerce?

 

any help would be appreciated

 

Search the contribution section for Anti Robot Registration. That will protect contact_us and other files like create_account.php

Link to comment
Share on other sites

  • 1 month later...

In images/captcha.php, try replacing

 

$code = CAP_RC4($captcha_encryption_key, urlsafe_b64decode($HTTP_GET_VARS['code']));

 

with

 

if ($HTTP_GET_VARS['code']){

$code=$HTTP_GET_VARS['code'];

}else{

$code=$_GET['code'];

}

$code = CAP_RC4($captcha_encryption_key, urlsafe_b64decode($code));

Link to comment
Share on other sites

  • 3 months later...
In images/captcha.php, try replacing

 

$code = CAP_RC4($captcha_encryption_key, urlsafe_b64decode($HTTP_GET_VARS['code']));

 

with

 

if ($HTTP_GET_VARS['code']){

$code=$HTTP_GET_VARS['code'];

}else{

$code=$_GET['code'];

}

$code = CAP_RC4($captcha_encryption_key, urlsafe_b64decode($code));

 

 

 

This code works! Thank you

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...