Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95133 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18915 invoked from network); 14 Aug 2016 09:18:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2016 09:18:05 -0000 Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.230 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.230 mail4-3.serversure.net Linux 2.6 Received: from [217.147.176.230] ([217.147.176.230:35985] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/AB-36656-B4730B75 for ; Sun, 14 Aug 2016 05:18:03 -0400 Received: (qmail 2054 invoked by uid 89); 14 Aug 2016 09:18:00 -0000 Received: by simscan 1.3.1 ppid: 2048, pid: 2051, t: 0.0867s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.7?) (lester@rainbowdigitalmedia.org.uk@81.138.11.136) by mail4.serversure.net with ESMTPA; 14 Aug 2016 09:18:00 -0000 To: internals@lists.php.net References: <10fbcb03-5de8-4d9a-da1c-7e2bf77937cb@lsces.co.uk> Message-ID: Date: Sun, 14 Aug 2016 10:18:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Simple variable handling. From: lester@lsces.co.uk (Lester Caine) On 14/08/16 09:50, Tony Marston wrote: > If you are still writing code to perform primary validation on each > field then your coding style is way behind the times. At some point you need to know the rules that wrap each field you are working with. The sort of forms I work with have individual rules for probably 90% of them. I'd dropped browser side checks from some site upgrades simply to speed getting the code over and the old js/flash solutions are no longer PC, so I'm looking to a new standard to restore what the sites did 15 years ago! Clients like when the browser says not valid rather than hving to press submit and wait for the new page ... > If you want the language to change to perform this validation for you I > would strongly suggest that you first learn how to write a standard > validation function in userland code - which I did over 10 years ago - > instead of trying to make the language more complicated just to cover up > your own shortcomings. My 'complaint' if anything is that EVERYBODY does that now and there is no problem with that, EXCEPT every solution has it's own style of working and coding so there is no 'standard' way of passing the key annotation that all of these systems use. Everything is built around a set of variables? There are so many different database abstraction layers even built on top of PDO that people simply hack them to their own purpose rather than more effort being put into producing a base that we can all put effort towards improving. And where PHP does not have a style people like they go off and produce a new language. I'm not against all of the different styles of working, just looking to improving the common standards of the base set of variables they are built on top of. So I have some reason to change the remaining legacy sites which are just working fine as long as you babysit them. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk