Prev | Current Page 420 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

php" method="post">
What's your favorite programming language?
(check all that apply):

C#

JavaScript

Perl

PHP



If the user chooses the languages C# and PHP, he is greeted with the following output:
You like the following languages:
csharp
php
Taking Advantage of PEAR: HTML_QuickForm
While the previous examples show that it??™s fairly easy to manually code and process
forms using plain old HTML and PHP, matters can quickly become complicated and
error-prone when validation and more sophisticated processing enter the picture, as
is likely for any ambitious application. Thankfully, this is a challenge faced by all Web
developers, so quite a bit of work has been put into automating the forms creation,
validation, and handling process. A solution comes by way of the impressive HTML_
QuickForm package, available through the PEAR repository.
356 CHAPTER 13 ?–  FORMS
HTML_QuickForm is much more than a simple forms-generation class; it offers more
than 20 XHTML-compliant form elements, client- and server-side validation, the
ability to integrate with templating engines such as Smarty (see Chapter 19 for more
about Smarty), an extensible model allowing you to create your own custom
elements, and much more.


Pages:
408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432