PDA

View Full Version : Image Validator thingy *type the numbers before pressing submit...*



Rockonmetal
08-25-2007, 09:14 PM
You know those things that make you type out random numbers and letters which are all different colored and have lines and stuff through them, how do you make those? If anyone knows let me know, I wanted to see if I could put some on my site...

thetestingsite
08-25-2007, 09:16 PM
You can search around here or your favorite search engine for the term CAPTCHA. There are several tutorials floating around. Here is just a random one I found recently.

http://www.webcheatsheet.com/php/create_captcha_protection.php

Hope this helps.

Rockonmetal
08-26-2007, 06:42 PM
K, thanks... I tried the link you gave me downloaded the source but it didn't generate the image *probably cuz i can't run Ajax straight off my hard drive... though I can view PHP files...* but it i'll be something I'll be working with THANKS!

thetestingsite
08-26-2007, 06:44 PM
In order to use CAPTCHA, you must have the GD library enabled on your server. To check this, make a file called phpinfo.php and in it place the following:



<?php
phpinfo();
?>


After running that, look for something about GD and see if it is enabled/installed on your server.

Hope this helps.

Rockonmetal
08-26-2007, 07:07 PM
the only line with gd in it is this

Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"

thats the first block with the system info and ends with registered stream filters...

oh and i'm using wamp and I haven't set up a database yet...

thetestingsite
08-26-2007, 07:13 PM
You should see something like in the screenshot below

http://thetestingsite.net/phpinfo.png

You may have to scroll down a bit to see this.

Hope this helps