This is a demostration of vForm which is described in this entry: Form validation on client and server.
The validation is performed both on the client with Javascript and on the server with PHP. Try disable javascript to see how the server-script kicks in. View the source.