Jump to content


Photo

Image-Verifications in forms with PHP


  • Please log in to reply
1 reply to this topic

#1 meman1188

meman1188
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 13 July 2006 - 05:19 AM

I have a question about the php methods for image verification in forms.  All the tutorials i have seen to do this use a temp image file, normally verify.png, and i was just wondering if anyone has run into a problem with the image changing as the page loads.  I know that seems unlikely but if the timing was right, it seems like the image could possibly change if two people loaded the page at almost the same time, which would mean the person couldn't possibly enter the right code.  Has anyone run into this problem or found a way of doing it without usign a temp image file?

-- Brady

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 13 July 2006 - 07:41 AM

Use a temporary image with an auto-generated filename. That way, in the unlikely event that two people submit at exactly the same time, two different images will be created.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users