Changeset 262


Ignore:
Timestamp:
Jun 23, 2007 2:04:39 AM (17 years ago)
Author:
quinn
Message:

Removed name="sc-captcha" from <pre> in Captcha.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Captcha.inc.php

    r247 r262  
    1919<pre style="font-size: 0.5em;"><?php $captcha->printAsciiNumber() ?></pre>
    2020<?php $captcha->printForm() ?>
     21
     22// Finally, test if the captcha was submitted correctly.
     23if (!$captcha->valid()) {
     24    // Go back, show error.
     25}
     26
     27// Or if you're using the FormValidator class.
     28if (!$captcha->valid()) {
     29    $fv->addError('sc-captcha', _("The Captcha you entered is invalid. Please try again."));
     30}
     31
    2132-------------------------------------------------------------------------------------
    2233 */
     
    172183    {
    173184        $ascii = $this->getAsciiNumber($this->random_number);
    174         ?><pre name="sc-captcha" id="sc-captcha"><?php echo $ascii ?></pre><?php
     185        ?><pre id="sc-captcha"><?php echo $ascii ?></pre><?php
    175186    }
    176187
Note: See TracChangeset for help on using the changeset viewer.