RE: Form.php - why returnStart ?
| From: | Urs Gehrig | Date: | Tue, 23 Jan 2001 15:18:07 +0000 |
| Subject: | RE: Form.php - why returnStart ? | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-1135@lists.php.net to get a copy of this message | ||
dear bertrand
> Reading the code of that class, I couldn't figure out why there were start
> and returnStart functions ? I may be mistaken but I think these two
... my intetions with the return*() functions in the HTML_Form class was to
use them together with templates, where you do not want to print out the
form fields directly as html, but want to return a string variable.
> functions could be put in just one ? Or maybe I am wrong and then
... this should allow most flexible use for many different applications.
> In the code, this supposes I have created a table and I want my header
> beside my text field (which is how it is most of the time) but if
... that's probably, where you begin to limit the class to some certain
applications. i have never been so flexible and fast designing forms as
with this class ;)
> It would be also nice to have the possibility to add errors above
> the field (ex: Don't forget to fill this field...) like they
... that's what i did with PEAR HTML_Form: get my demo script:
http://www.circle.ch/scripts/code/pear_form_demo.zip
best regards, urs
--
Urs Gehrig <urs@circle.ch>
http://www.circle.ch