Developer Support »

Securimage CAPTCHA not working  (See more user questions)

Well done, ...saves me the trouble!

Good point. It is written in conjunction with the script installation
instructions, whereby the script and form are in the root directory and the
/securimage directory is off the root too. I will make a note in the
instructions about it.

That's why I was banging on about the directory structure, which indeed was
the problem, but I was looking at the script code and didn't think about the
form code. Again, this is why it is handy to see the form in a live
environment.

Keep this up and you will be able to buy your own yacht!

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Thursday, August 13, 2009 3:49 PM
Subject: RE: FormToEmail-Pro script

Hi Charles

Sorted it...

<img id="captcha" src="/securimage/securimage_show.php" alt="CAPTCHA
Image"><br><a href="#" onclick="document.getElementById('captcha').src =
'/securimage/securimage_show.php?' + Math.random(); return false">Reload
Image</a><br><input type="text" name="captcha_code" size="10" maxlength="6">

In both your captcha script expamles in your instructions the code contains
a /(forward slash) before the securimgae directory ... removing it makes the
script work.

Sorry to have kept pestering you

Regards

> Subject: Re: FormToEmail-Pro script
> Date: Wed, 12 Aug 2009 13:22:55 +0100
>
> Hi . You are using a local machine just now? You can't give me a
> URL for the form page? Much better to see it in its real environment.
>
> If the securimage test returned ok, then I imagine your PHP is ok,
> including
> the GD stuff, which is what you need to display the captcha (again it's
> not
> my captcha, but I know that much).
>
> Quick look at your edited script. Looks ok.
>
> The problem is bound to be down to the script not finding your securimage
> file (/securimage/securimage.php). Aren't you getting any errors? Can you
> check an error log?
>
> You need to make a directory RELATIVE to the directory that the script
> (formtoemailpro.php) is in. So if the script is here:
>
> http://www.example.com/formtoemailpro.php
>
> ...then you need to make this directory:
>
> http://www.example.com/securimage/
>
> ...and put your securimage files and folders in to it.
>
> Equally, if your script is here:
>
> http://www.example.com/scripts/formtoemailpro.php
>
> ...you need to make the directory:
>
> http://www.example.com/scripts/securimage/
>
> And if you are on a local machine, if the script is here:
>
> c:\website\formtoemailpro.php
>
> ...you need to make this directory for the securimage files and folders:
>
> c:\website\securimage\
>
> Just the same, if the script is here:
>
> c:\some user\documents\website\scripts\formtoemailpro.php
>
> ...then you need to make this directory:
>
> c:\some user\documents\website\scripts\securimage\
>
> Can you check that out please?
>
> Best wishes.
>
> Charles Sweeney
> https://formtoemail.com
> The world's easiest feedback script!
>
> ----- Original Message -----
> Sent: Wednesday, August 12, 2009 12:05 PM
> Subject: RE: FormToEmail-Pro script
>
>
>
> Hi Charles
>
>
>
> What can I say but many thanks - attached is my regsiter page , your
> formtoemalpro PHP file and the securimage directory
>
>
>
> The securimage file bit was in the root directory as was the other to
> files
> so it should have worked. On the captcha.net site there is some PHP code
> to
> test the server which I used and it produced a "everything OK" result and
> a
> captcha graphic to boot.
>
>
>
> Basically all I want is for the attched form to be emailed to me with the
> form details with no required fields or anything like that. I have magaed
> to
> get the error message returned on the page so it may just be a case of
> having a quick look. The only thing I can think is that I am curently
> using
> Wamp server local machine to design my site and on the Captcha site some
> forum guy is going on about php.ini GD settings (huhh?... :-/ ) and
> causing
> the image not to appear. However I have also included the server test PHP
> file which seems to indicate that all is OK
>
>
>
> Cant thank you enough - will gladly donate a Paypal payment to you or your
> favoured charity for the help...
>
>
>
> Regards
> > Subject: Re: FormToEmail-Pro script
> > Date: Wed, 12 Aug 2009 09:18:54 +0100
> >
> > Hi
> >
> > Have you followed the instructions to the letter for using the
> > securimage
> > captcha? Made the directories on your site? Most likely thing is you
> > have
> > not got the securimage directory in the correct place in relation to
> > your
> > form. What is the URL of your form page? What is the URL of the
> > securimage
> > directories?
> >
> > Further help is available from securimage (see the script instructions
> > for
> > more info). Your PHP might not be set up correctly. Securimage is NOT my
> > product. I only show how to use it with my script.
> >
> > You have a couple of options for showing errors. You can customise the
> > script to show them, more info here:
> >
> > https://formtoemail.com/developersupport/customizing_error_messages.php
> >
> > ...or you can redirect back to the form page and display the errors on
> > the
> > form page. More info here:
> >
> > https://formtoemail.com/developersupport/show_errors_on_form_page.php
> >
> > Any questions, just let me know.
> >
> > Best wishes.
> >
> > Charles Sweeney
> > https://formtoemail.com
> > The world's easiest feedback script!
> >
> > ----- Original Message -----
> > Sent: Wednesday, August 12, 2009 5:21 AM
> > Subject: RE: FormToEmail-Pro script
> >
> >
> >
> > Hi charles
> >
> > May I ask a quick question ... I have read your brief , installed the
> > file
> > and set up the captcha system using the "securimage" directory method
> > but
> > it
> > wont display an image to verify . Also, is there any way to get all the
> > error messages to display in your own web page, rather than the white
> > screen
> > method as is.. I tried pasteing your script into my own page and calling
> > it
> > formtoemailpro.php but alas it completely throws my CSS and messes up
> > all
> > but my backround div's, although it does show the error message(s) . It
> > will
> > however show the final "thank-you" html bit Ok in my page
> >
> >
> >
> > You probably get endless emails re this kind of thing but a heads up on
> > how
> > to get things working would be great
> >
> >
> >
> > Regards