If you program in PHP then you should know the power that the PEAR Library provides. If not make sure you look into it because it can save you hours of programming time. One of the overlooked functions in this library is the HTML_QuickForm function. This allows you to create forms in HTML and also add validating functionality to it. Good stuff.

I recently needed to develop an HTML form to input and edit contact details in a database with the usual name, address, telephone, and web page fields. This very common task is made more complex because of the need to validate the input data according to various rules and to notify the user if the validation process fails. I’m also always keen to separate the presentation logic (typically HTML) from the programming logic (PHP, in this case).

Share and Enjoy

  • StumbleUpon
  • Reddit
  • Digg
  • del.icio.us
  • Facebook
  • TwitThis

Related posts:

QForms – The web form’s best friend
Wiring Your Web Application with Open Source Java
.Net Coding Guidelines
The Unix Philosophy
Getting Started with RFID

Hope you like that post!

Forever Geek is a resource for all things geek. You can stay tuned by having the latest FG news delivered to you for free via RSS.