Word verfictaion

PythonPython Forum LeaderThe Royal RAM
For a user registration script I want users to have to enter in a word as it appears and if it is correct they can register.

I know that GD is used to generate the image but how exactly is it done and hos is the entered word matched up against the image?

The Royal Ram

Comments

  • martian2k4martian2k4 Llama Hunter Moderator
    Umm. I have never done it but couldn't you get PHP to generate a random umber. Then using GD it would makie the image and set a session i.e $_SESSION["img_varification"]; then on the next page you could just have a if ( $_POST["number"] == $_SESSION["img_varification"] { echo "Well done"; }else{ echo "Ahh crap!"; }

    Just somma like that?!?!?!
    Free MySpace Layouts- Coming soon
    Photoshop Tutorials- Coming soon
    Premium PHP Scripts- Coming soon

    Haha i should really do some work so i can remove all the coming soon's
  • PythonPython Forum Leader The Royal RAM
    yea I understand that part... but its the cretaing the image with GD part I dont know ;)

    The Royal Ram

  • Zephyr281Zephyr281 Beginner Link Clerk
    All I could find was a list of the image functions and a few examples: http://www.zend.com/manual/ref.image.php
    arcsig.jpg
Sign In or Register to comment.