|
You are here: Home / Documentation / MailForm: The Sitellite Form API |
MailForm: The Sitellite Form API
Lets say we want to verify that the form has
somewhat correct information, or is at least complete. To do
this, we can set validation rules on the fields in our settings.php
file.
; <php /*The rules take the format "rule # = definition, error message". Also notice we also added a new line "error_mode = all" under the main [Form] section. This line tells MailForm to display the errors in a bulleted list at the top. Otherwise, MailForm defaults to displaying only the first error message at a time. My personal preference is to show them all, but the choice is up to you. You can refer to the Sitellite Application Framework (SAF) documentation on sitellite.org or in your copy of Sitellite for more information on using the rules, including more advanced validation. Next: Form Handling Page 1: Sitellite features one of the mo... |
|
Copyright © 2008, SIMIAN systems Inc. All rights reserved. Privacy policy Some of the icons on this site were created by the Gnome Project. |