Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you actually make 'Security codes'?

Status
Not open for further replies.

748323

Programmer
Dec 10, 2004
70
US
Ones that display an image, and then you have to type in what you see.

I know how to use PHP, and I know how to create a random image. But, how do you tell the script that the security code is indeed 'ang2', for example? Thanks.

Deja-vu (Random)
 
I have the script which generates the page with the <IMG> tag also generate the random text and store it in a session variable.

The image-generating script can then pull it out of there.



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Sessions! That's it!

I knew it was just a logic problem :)

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top