denewey Posted April 17, 2009 Share Posted April 17, 2009 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? Link to comment https://forums.phpfreaks.com/topic/154486-captcha-module-in-a-mod_rewrite-framework/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.