Logo         Community
The Company
Your Account
Contact Us
XForms Basics (part 3)
Perform calculations on form input values and get a crash course in the XForms event model.

| Endgame |

In the previous article, I showed you how to manage user input in the XForms model. I discussed the process of submitting an XForm and - more importantly - validating user input prior to submission using built-in XML Schema support.

In this concluding segment, I'll introduce you to some of XForms' more arcane features. First, the concept of binding, which allows developers to implement a number of useful features quickly - calculating values instantly, enforcing basic validation rules, taking decisions on the fly or rendering a particular node non-writable.

Next, I'll briefly show you how you can use XPath functions within an XForms model definition, and illustrate how functions like sum() and avg() allow you to perform complex calculations in a simple and smooth manner. I'll also take a quick look at the XForms event processing model, explaining the important phases and showing you a basic example of how triggers and actions work.

Let's get started, shall we?

How to do Everything with PHP & MySQL
How to do Everything with PHP & MySQL, the best-selling book by Melonfire, explains how to take full advantage of PHP's built-in support for MySQL and link the results of database queries to Web pages. You'll get full details on PHP programming and MySQL database development, and then you'll learn to use these two cutting-edge technologies together. Easy-to-follow sample applications include a PHP online shopping cart, a MySQL order tracking system, and a PHP/MySQL news publishing system.

Read more, or grab your copy now!

more like this print this article  next page
In trog...
Logging With PHP
Building A Quick-And-Dirty PHP/MySQL Publishing System
Output Buffering With PHP
Date/Time Processing With PHP
Creating Web Calendars With The PEAR Calendar Class
In the hitg report...
Crime Scenes
Animal Attraction
Lord Of The Strings
In boombox...
Patience - George Michael
Think Tank - Blur
My Private Nation - Train
In colophon...
Hostage - Robert Crais
The Dead Heart - Douglas Kennedy
Right As Rain - George Pelecanos
In cut!...
American Chai
The Core
Find out how you can use this article on your own Web site!

Copyright © 1998-2018 Melonfire. All rights reserved
Terms and Conditions | Feedback