Click to See Complete Forum and Search --> : image verification in forms....


Johnathan808
04-08-2004, 05:11 PM
http://www.j-price.net/pic.gif
Anyone know were i can get something like this?

Jona
04-08-2004, 05:30 PM
It's just a generated image (imagecreate() (http://us3.php.net/manual/en/function.imagecreate.php)), with some grid lines (imageline() (http://php.net/imageline)), and a font with random letters/numbers (defined in the file including the PHP file that generates the image so that the script can validate it but avoid being hacked).

Johnathan808
04-08-2004, 05:37 PM
actually i was wanting it to prevent bots from filling out my forms.

Jona
04-08-2004, 05:39 PM
Originally posted by Johnathan808
actually i was wanting it to prevent bots from filling out my forms.

That's what I meant. If you used, say, <img src="number.php?numbers=AFD12"> the bots could figure it out, so you'd just use number.php after defining a global variable... Right? Come to think of it, I could be wrong, but I think that'd be a good way to do it...

Johnathan808
04-08-2004, 05:44 PM
Yea, but do you know were i can get a script to make that image, and the text field?

Jona
04-08-2004, 05:56 PM
Try http://hotscripts.com/ they have a lot of good scripts there. You also could try the PHP Resource Index (http://php.resourceindex.com/).

Johnathan808
04-08-2004, 06:00 PM
Thanks for the help. :)

Jona
04-08-2004, 06:01 PM
I hope you find what you're looking for!

Conor
04-08-2004, 06:07 PM
look for some posts by the cheat in this thread

http://forums.webdeveloper.com/showthread.php?s=&threadid=30216

Johnathan808
04-09-2004, 12:15 AM
Thanks, but i need help again...


i downloaded 'image_validation.zip' from that page, and uploaded it to my server....

when i go to the page ( Located Here. (http://www.j-price.net/test/html.html) ) the image doesn't load.

What do i need to do to fix the error? :confused:

The Cheat
04-09-2004, 12:46 AM
Originally posted by Johnathan808
Thanks, but i need help again...


i downloaded 'image_validation.zip' from that page, and uploaded it to my server....

when i go to the page ( Located Here. (http://www.j-price.net/test/html.html) ) the image doesn't load.

What do i need to do to fix the error? :confused:
contact your host and make sure they have the gd library enabled for php... It's something you change in the php.ini file.

That's weird because it seems like every host has that enabled......

Conor
04-09-2004, 09:18 AM
http://www.j-price.net/test/html.html

maybe its because the page has a .html extension and you need a .php extension? but idk as i have not worked with that script

Johnathan808
04-09-2004, 06:46 PM
Actually it was because gd library was not enabled in php.ini. I got the script to work. Thanks to all that helped me!

The Cheat
04-09-2004, 11:10 PM
Originally posted by RefreshF5
http://www.j-price.net/test/html.html

maybe its because the page has a .html extension and you need a .php extension? but idk as i have not worked with that script
nope, that's how it's supose to be

Originally posted by Johnathan808
Actually it was because gd library was not enabled in php.ini. I got the script to work. Thanks to all that helped me!
Glad you got it worked out! :)