Re: validating textarea using php
| From: | Iv Ray | Date: | Tue, 13 May 2008 19:17:06 +0000 |
| Subject: | Re: validating textarea using php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274267@lists.php.net to get a copy of this message | ||
Sudhakar wrote:
i do not want this to happen, if a user simply hits the spacebar and does not type anything i should be able to display an alert message.From usability point of view such check will, in many cases, generate annoyance, and bring nothing. If I do not want to enter anything, and you "error me" to enter "something", I'll do like this - asdlöfjasdpoöfja spdfj as fsdaölkjf And your check is dead. If you want "something", you will get "something". It is hard (from usability point of view) to "validate" textarea to that extent, and especially - to get reasonable answers... I work for a scientific database, where all content providers are very intelligent, well educated and very disciplined, and the content editors still have hard time thinking how to guide the content provider so that they provide reasonable input. Your problem is not so much php related, but a usability and editorial one. Iv