The Login Page: The Login Form
Monday, November 15, 2010
The Login Form is a simple form, consisting of three elements: the username field, the password field and the login button. (more…)
The Login Form is a simple form, consisting of three elements: the username field, the password field and the login button. (more…)
When a user is asked to enter a new password, it is customary to ask the user to repeat it, in order to reduce the risk of it being entered incorrectly. In the Zend Framework, there is a validator that can check whether two items are identical, but using it with Zend_Form is tricky, because it needs the values of two fields to make the comparison, while validators are attached to a single field, independently of the others. This article looks at how to use Zend_Validate_Identical with Zend_Form. (more…)
Although the example website currently only has one form, the contact form, other forms may be added to it in the future; therefore, in implementing the form, I created an abstract base class for site forms, which contains the functionality shared by all forms. (more…)