Advertisement
Guest User

Untitled

a guest
Apr 5th, 2013
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2. generate_random_word();
  3. $prefix = mt_rand();
  4. $captcha_instance->generate_image( $prefix, $word );
  5. ?>
  6.  
  7. On your contact form page.
  8.  
  9. Then on the results page (where you do your checks and then collect the data)
  10. <?php
  11. check( $prefix, $the_answer_from_respondent );
  12.  
  13. if ($correct="true")
  14. {
  15. <run code for correct response >
  16. }
  17. else
  18. {
  19. <run code for negative response >
  20. }
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement