Jump to content

Archived

This topic is now archived and is closed to further replies.

meman1188

Image-Verifications in forms with PHP

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.