Changeset 3031 for trunk/application
- Timestamp:
- 07/10/2008 11:06:23 AM (5 months ago)
- Files:
-
- 1 modified
-
trunk/application/controllers/examples.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/application/controllers/examples.php
r3017 r3031 176 176 { 177 177 // Form submitted 178 if (isset($_POST['captcha_ answer']))178 if (isset($_POST['captcha_response'])) 179 179 { 180 180 // Note: Captcha::valid() can be used in conjunction with the Validation library too 181 echo (Captcha::valid($_POST['captcha_ answer'])) ? 'Good answer!' : 'Wrong answer!';181 echo (Captcha::valid($_POST['captcha_response'])) ? 'Good answer!' : 'Wrong answer!'; 182 182 } 183 183 … … 187 187 echo Captcha::factory()->render(); // <-- shows the Captcha challenge (image/riddle/etc) 188 188 echo '</p>'; 189 echo form::input('captcha_ answer');189 echo form::input('captcha_response'); 190 190 echo form::submit(array('value' => 'Check')); 191 191 echo form::close();
