Re: Functions
| From: | Richard Lynch | Date: | Tue, 15 Aug 2006 00:17:54 +0000 |
| Subject: | Re: Functions | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240669@lists.php.net to get a copy of this message | ||
On Sun, August 13, 2006 8:45 pm, Gerry D wrote:
> On 6/30/06, Richard Lynch <ceo@l-i-e.com> wrote:
>
>> #2. Don't alter the case of the input data, if at all possible.
>> Accept what the user has given, and take it as it is. You can make
>> your application not care about case, and you can format the case on
>> ouput (maybe even with fancy CSS stuff) but don't mess with their
>> input.
>
> Why not clean up crappy input right at the source, Richard?
Clean up crappy input, of course.
Convert perfectly-valid NEWLINE into a tag <BR> for browser output, no.
The conversion of the data for OUTPUT to a specific medium (browser,
RSS, XML, WAP, FUTURE TECH #1*) should be done on OUTPUT, not INPUT.
Othewise, to convert your input plain -> HTML data to WAP, you first
have to UNDO the plain -> HTML conversion, then do a plain -> WAP
conversion.
That's just daft.
* You should get a warm fuzzy for recognizing this phrase. :-)
--
Like Music?
http://l-i-e.com/artists.htm