This page demonstrates how to split a data input form into multiple steps (such forms are commonly called wizard forms). The point is to override the forms/form.tpl and forms/page_form.tpl templates and then bind them with the OnGetCustomTemplate event. Click the button to see the event handler code.
Try to add a record to see the wizard form in action.