Re: Form display and processing module?
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Form display and processing module? | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-621@lists.php.net to get a copy of this message | ||
On Thu, 6 May 2004, David Sklar wrote:
> If it isn't to be bundled, I think the biggest gain would be me honing
> my extension building skills.
We have always avoided having anything in the core spit out HTML (except
for phpinfo) and I really don't see a strong reason to change that stance.
If something to do with input validation is going to go into the core, it
would be a default generic input validation filter that I added an API
hook for a while back. Providing some common input filters would be much
more useful than a specific HTML-generation mechanism like this. Of
course, the i18n aspects of input validation are daunting, so I don't know
if we will ever see such a standard filter.
I would suggest you look more at what sort of generic data manipulation
functions are needed to make any sort of form validation easier to
implement? Perhaps some extra array manipulation functions for checking
whether a set of results are in the selection array? I don't think
in_array() is quite flexible enough for a multiple select list, for
example.
-Rasmus