Jump to content

Recommended Posts

Hi,

 

I installed secureimage CAPTCHA from a quick start guide at http://www.phpcaptcha.org/ in one application and it worked fine - no glitches. I then installed it in another application and it failed. The second application had a mod_rewrite file structure and I don't know if that is what was throwing it off. To get it to work I ended up using an absolute path to the file that creates the captcha image (secureimage_show.php), like so:

 

<img id="captcha" src="http://www.edgarfilingagent.com/wp-content/themes/edgar/securimage/securimage_show.php" alt="CAPTCHA Image" />

 

For the reload of the image I also used an absolute path to the image generating file, BUT this does not work:

 

<a href="#" onclick="document.getElementById('captcha').src = 'http://www.edgarfilingagent.com/wp-content/themes/edgar/securimage/securimage_show.php' + Math.random(); return false">Reload Image</a><br />

 

With this the functionality of checking the code submission works properly, BUT the reload of the image does not work. When I click on "Reload image" I get the ALT text. I'm perplexed why the absolute path works for initial loading of the page/image but doesn't when I try to reload the image and don't know if it's the mod_rewrite or the javascript operating in that environment or something with the php image generating file or what. Any suggestions?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.