Captcha Issue

software development

#1

When you goto
http://www.mattaproductions.com/index.php?page=example_form my captcha doesn’t show up.

When you go here
http://www.mattaproductions.com/includes/example_form.php

It works fine. I’m guessing it’s something with my index.php page or my css coding. Appreciate any help.

I got the Captcha from http://www.phpcaptcha.org/.

Matta


#2

The image URL is returning a Not Found error indicating you need to fix the URL or move the captcha script.

:cool: openvein.org -//-


#3

Yeah, but if you read my previous post the file hasn’t move. I’m pulling the captcha script into my page so either the programming in index.php or my css file or both is causing a conflict. The script loads fine where it is. Just getting it to load into my page.

Matta


#4

OK here is the long winded version.

Your script URL:
http://www.mattaproductions.com/index.php?page=example_form

Your HTML source:

The browser knows the web page comes from the index.php file in the “/” directory.

Because you neglect to specify that the securimage.php file is in a different directory, the browser assumes it is in the same directory as index.php, and thus tries to get the image from http://www.mattaproductions.com/securimage_show.php - which returns a Not Found error.

So fix the URL used in index.php - sorry if I thought you would know I meant the one used in the HTML source generated by your PHP script.

:cool: openvein.org -//-


#5

ROFL

I feel really stupid now. I was checking everything else but the 2 url’s place inside the document. Thanks a lot for clearing that up for me.

Matta


#6

I would typically make the assumption that this has been resolved but I noticed that I am not seeing the captcha image in any of the previously posted links, including pages you indicated to be working for you.

There are a couple ways that you could remedy this, but the easiest is probably to simply put a leading slash in front of the reference to your image (php) file. Right now you’re using relative pathing so when you go to this url: “http://www.mattaproductions.com/includes/example_form.php”, the image doesn’t show up because the img tag is looking for it as:

This is telling the page to actually try and find the file at “http://www.mattaproductions.com/includes/includes/securimage_show.php” which is invalid. If you were instead simply to change the tag to: it would look at “http://www.mattaproductions.com/includes/securimage_show.php” which is valid.