Even though there are a few plugins available for Smarty to deal with form validation, I decided to write my own. I tried to do the best I could to make this script elegant, but keep in mind that it is still a work in progress.

http://phparchitecture.com/script_show.php?id=6