ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-general
php-general
Re: [PHP] Functions
by Richard Lynch other posts by this author
Aug 14 2006 5:18PM messages near this date
Re: [PHP] Functions | Re: [PHP] Functions
On Sun, August 13, 2006 8:45 pm, Gerry D wrote:
>  On 6/30/06, Richard Lynch <ceo@[...].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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Benc11@Gmail.Com
Richard Lynch
Gerry D
Richard Lynch
Chris
Benc11@Gmail.Com
Amit Arora
Stut
John Meyer

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved