[PEPr] Comment on HTML::HTML_QuickForm_Rule_Spelling
| From: | Christian Weiske | Date: | Tue, 25 Sep 2007 06:20:55 +0000 |
| Subject: | [PEPr] Comment on HTML::HTML_QuickForm_Rule_Spelling | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-48177@lists.php.net to get a copy of this message | ||
Christian Weiske (http://pear.php.net/user/cweiske) has commented on the proposal for
HTML::HTML_QuickForm_Rule_Spelling.
Comment:
It would be great if that worked without javascript.
A way to do it would be the following:
- Check text for spelling errors.
- On errors:
- Fail validation
- Insert hidden element into form with md5 of text
- All ok:
- Mark element valid
- Now the second time the form is submitted
- If there are no more errors, all is find
- If the text still contains spelling errors:
- md5(current text) == hidden md5 of previous text
-> the errors are intentional, the user wants it
- text is different from previous version: check again
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=508
--
Sent by PEPr, the automatic proposal system at http://pear.php.net