Using rand() for a CAPTCHA!

submit to reddit

What if you have to add a simple CAPTCHA for a web form asking the user to sum two numbers. Will you prefer to use rand() to generate those two numbers? Some may say this is too predictable!

Related posts:

  1. JavaScript random numbers
  2. How to Overcome Zend_Cache_Frontend_Page’s Problem with Cookies
  3. Automatically Upload Images with PHP Directly from the URI

You are a GREAT developer? Click here to answer the weekly quiz!

This entry was posted in PHP and tagged , , , , , . Bookmark the permalink.

One Response to Using rand() for a CAPTCHA!

  1. Stoimen says:

    By the way there is a Zend_Form_Element_Captcha which will be described in a future post!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">