On 13/08/16 10:14, Tony Marston wrote: > I do not see that complicating the language by making it do what SHOULD > be done in userland code is a good idea. Helping 1% of users while > hindering the remaining 99% is not an idea which should EVER be > contemplated.
I'm currently looking to 'modernise' forms that are still using hard coded mechanisms for validation in the browser and cross checking in the PHP end. What I can not find is a tidy 'modern' method of handling the building of forms without having to hand write javascript and other elements of form building. I'm based on Bootstrap3 for the layout and css side of things and have just 'invested' in a copy of FormValidation as it seems to do a good job of producing all the javascript side while still working html in the smarty templates. I'd rather be using open source code I can extend, but nothing I've found seems to work. The next step is to produce slices of forms as templates each of which can be populated from the rules attached to a variable. In the absence of any standard for handling that in PHP directly I will probably resort to using the SQL schema to provide the rules since essentially the captured data will end up in a database anyway. I can extend ADOdb to provide a more comprehensive field description for each variable to populate the smarty templates. It would be nice though to have that information more centrally accessible in PHP so the various third party systems can standardise on using them? The schema based material is not visible via phpdocumentor which sort of pushes expanding the docblock alternatives instead. Of cause to add to the fun. Having got a new style form working, I've dropped the UK NI Number validation regex into FormValidator ... and it's not working :( The regex as been used for years in hand coded javascript and is clean in the checker program, just not producing a match in FV :( -- 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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php