Tutorial: adding multi-page forms
PHP validation doc